Skip to content

Commit

Permalink
prisma generate before build
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoishin committed Jan 7, 2024
1 parent 76c5ac9 commit 3749ffb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ jobs:
with:
node-version-file: package.json
- run: npm ci
- run: npx prisma generate
working-directory: ./projects/server
- run: npm run check-format
- run: npm run build
- run: npm run lint
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"test": "npm run test --workspaces --if-present"
},
"workspaces": [
"projects/server",
"projects/admin",
"projects/client",
"projects/server"
"projects/client"
],
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^6.17.0",
Expand Down
2 changes: 1 addition & 1 deletion projects/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"private": true,
"type": "module",
"scripts": {
"build": "esbuild src/main.ts --bundle --outfile=out/main.js --platform=node --format=esm --target=node20 --packages=external --sourcemap",
"build": "prisma generate && esbuild src/main.ts --bundle --outfile=out/main.js --platform=node --format=esm --target=node20 --packages=external --sourcemap",
"start": "node --enable-source-maps bin.js",
"dev": "run-p dev:*",
"dev:server": "node --watch --watch-preserve-output --enable-source-maps bin.js",
Expand Down

0 comments on commit 3749ffb

Please sign in to comment.