fix(docker): cd into packages/db before building
pnpm --filter runs in the workspace root where tsc finds the root tsconfig.json instead of packages/db/tsconfig.json. Change into the package directory so tsc picks up the correct local tsconfig. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
+1
-1
@@ -15,7 +15,7 @@ RUN mkdir -p /home/node/.cache/node/corepack
|
||||
COPY packages/ packages/
|
||||
COPY src/ src/
|
||||
RUN pnpm --filter @groombook/types build && \
|
||||
pnpm --filter @groombook/db build && \
|
||||
cd packages/db && pnpm build && cd ../.. && \
|
||||
pnpm build
|
||||
|
||||
# Runtime
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsc --project .",
|
||||
"build": "tsc",
|
||||
"generate": "drizzle-kit generate",
|
||||
"migrate": "drizzle-kit migrate",
|
||||
"seed": "tsx src/seed.ts",
|
||||
|
||||
Reference in New Issue
Block a user