Skip to content

Commit

Permalink
build: 打包之前执行db:generate
Browse files Browse the repository at this point in the history
  • Loading branch information
meetqy committed Jan 4, 2023
1 parent ba45f8d commit 1f070f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@
"author": "meetqy",
"scripts": {
"dev": "pnpm run db:watch & next --port 9623",
"build": "next build",
"build": "npm run db:generate && next build",
"start": "next start --port 9623",
"db:init": "prisma migrate dev --name init --skip-seed",
"db:watch": "prisma db seed",
"db:preview": "prisma studio",
"db:generate": "prisma generate",
"lint": "next lint",
"create:symlink": "ts-node scripts/symlink.ts"
},
Expand Down

0 comments on commit 1f070f2

Please sign in to comment.