Skip to content

Commit 185a9a3

Browse files
committed
fix(deps): make postinstall conditional for Docker compatibility
Make prisma generate only run when schema.prisma exists, allowing Docker builds to succeed when the dependencies stage doesn't have the prisma schema copied yet.
1 parent 1c41931 commit 185a9a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"node": ">=24"
3131
},
3232
"scripts": {
33-
"postinstall": "prisma generate",
33+
"postinstall": "test -f prisma/schema.prisma && prisma generate || true",
3434
"build": "tsc -p tsconfig.build.json",
3535
"start": "node --no-warnings -r source-map-support/register --experimental-specifier-resolution=node dist/src/main.js",
3636
"dev:stdio": "node --env-file=.env.test -r source-map-support/register -r ts-node/register --experimental-specifier-resolution=node --experimental-print-required-tla --watch src/main.ts stdio",

0 commit comments

Comments
 (0)