Skip to content

Commit

Permalink
manual prisma client generation on postinstall hook
Browse files Browse the repository at this point in the history
  • Loading branch information
matyson committed Aug 5, 2024
1 parent 31d973b commit f7e5e25
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions apps/deepsirius-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
"lint": "next lint",
"type-check": "tsc --noEmit",
"start": "next start",
"db:generate": "prisma generate",
"postinstall": "prisma generate",
"start:migrate:prod": "prisma migrate deploy && node server.js"
},
"dependencies": {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"lint": "turbo lint",
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
"format:check": "prettier --check \"**/*.{ts,tsx,md}\"",
"type-check": "turbo type-check"
"type-check": "turbo type-check",
"db:generate": "turbo -F @deepsirius-ui/app db:generate"
},
"devDependencies": {
"@changesets/cli": "^2.27.5",
Expand Down
4 changes: 4 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
"cache": false,
"persistent": true
},
"db:generate": {
"cache": false,
"outputs": ["node_modules/@prisma/client"]
},
"clean": { "cache": false }
},
"globalPassThroughEnv": ["NODE_ENV", "SKIP_ENV_VALIDATION"]
Expand Down

0 comments on commit f7e5e25

Please sign in to comment.