Skip to content

Commit 87caba1

Browse files
committed
fix: error when running app in developemnt
1 parent 170ba59 commit 87caba1

File tree

12 files changed

+33
-12
lines changed

12 files changed

+33
-12
lines changed

apps/cron/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ FROM base As builder
3131
COPY --from=pruner /app/out/pnpm-lock.yaml ./pnpm-lock.yaml
3232
COPY --from=pruner /app/out/pnpm-workspace.yaml ./pnpm-workspace.yaml
3333
COPY --from=pruner /app/out/json/ ./
34-
COPY --from=pruner /app/out/full/ .
34+
COPY --from=pruner /app/out/full/ ./
3535

3636
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
3737

apps/cron/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@
1717
"main": "/src/main.ts",
1818
"type": "module",
1919
"scripts": {
20-
"dev": "nodemon --watch './**/*.ts' --exec 'node --loader ts-paths-esm-loader' src/main.ts | pino-pretty",
20+
"dev": "nodemon --watch './**/*.mts' --exec 'node --import @swc-node/register/esm-register' ./src/main.mts | pino-pretty",
2121
"start": "NODE_ENV=production node dist/src/main.mjs",
2222
"build": "tsc --project tsconfig.json && tsc-alias -p tsconfig.json",
2323
"build:prod": "tsc --project tsconfig.prod.json && tsc-alias -p tsconfig.prod.json",
2424
"create-service": "tsx ./scripts/createService.ts",
2525
"ssm": "tsx ./scripts/ssm.mts"
2626
},
2727
"dependencies": {
28-
"@packages/database": "workspace:*",
29-
"@packages/common-scripts": "workspace:*",
3028
"@aws-sdk/client-ssm": "^3.379.1",
3129
"@fastify/autoload": "^5.8.0",
3230
"@fastify/cors": "^8.3.0",
31+
"@packages/common-scripts": "workspace:*",
32+
"@packages/database": "workspace:*",
3333
"@prisma/client": "^5.11.0",
3434
"date-fns": "^2.30.0",
3535
"date-fns-tz": "^2.0.0",
@@ -51,6 +51,7 @@
5151
"zod": "^3.21.4"
5252
},
5353
"devDependencies": {
54+
"@swc-node/register": "^1.9.0",
5455
"@types/geoip-country": "^4.0.2",
5556
"@types/inquirer": "^9.0.3",
5657
"@types/jest": "^29.5.2",

apps/cron/src/app.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ app.register(fastifyCron.default)
1515

1616
const utils = container.resolve(UtilsService)
1717
app.register(autoload, {
18-
dir: utils.resolveDir('./src/common/plugins/globals'),
18+
dir: utils.resolveDir('./src/common/plugins/global'),
1919
encapsulate: true,
2020
forceESM: true,
2121
})

apps/cron/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"@jobs/*": ["src/jobs/*"],
1414
"@routes/*": ["src/routes/*"],
1515
"@services/*": ["src/services/*"],
16-
"@env": ["src/env.mts"],
16+
"@src": ["src/*"],
1717
"@errors/*": ["src/common/errors/*"],
1818
"@plugins/*": ["src/common/plugins/*"],
1919
"@constants/*": ["src/common/constants/*"]

apps/server/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ FROM base As builder
3131
COPY --from=pruner /app/out/pnpm-lock.yaml ./pnpm-lock.yaml
3232
COPY --from=pruner /app/out/pnpm-workspace.yaml ./pnpm-workspace.yaml
3333
COPY --from=pruner /app/out/json/ ./
34-
COPY --from=pruner /app/out/full/ .
34+
COPY --from=pruner /app/out/full/ ./
3535

3636
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
3737

apps/server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
"@packages/common-scripts": "workspace:*",
4444
"@packages/database": "workspace:*",
4545
"@prisma/client": "^5.11.0",
46-
"@swc-node/register": "^1.9.0",
4746
"ajv": "^8.12.0",
4847
"axios": "^1.4.0",
4948
"backblaze-b2": "^1.7.0",
@@ -91,6 +90,7 @@
9190
"@graphql-codegen/typescript": "^4.0.0",
9291
"@graphql-codegen/typescript-operations": "^4.0.0",
9392
"@graphql-codegen/typescript-resolvers": "^4.0.0",
93+
"@swc-node/register": "^1.9.0",
9494
"@types/backblaze-b2": "^1.5.2",
9595
"@types/geoip-country": "^4.0.2",
9696
"@types/inquirer": "^9.0.7",

apps/web/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ FROM base As builder
2929
COPY --from=pruner /app/out/pnpm-lock.yaml ./pnpm-lock.yaml
3030
COPY --from=pruner /app/out/pnpm-workspace.yaml ./pnpm-workspace.yaml
3131
COPY --from=pruner /app/out/json/ ./
32-
COPY --from=pruner /app/out/full/ .
32+
COPY --from=pruner /app/out/full/ ./
3333

3434
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
3535

pnpm-lock.yaml

Lines changed: 23 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)