chore: run db:generate at first

This commit is contained in:
moonrailgun 2024-01-29 01:09:42 +08:00
parent c8671e8656
commit 8a42ef616e

View File

@ -9,6 +9,7 @@
"start": "cd src/server && cross-env NODE_ENV=production node ./dist/src/server/main.js", "start": "cd src/server && cross-env NODE_ENV=production node ./dist/src/server/main.js",
"start:docker": "pnpm start:docker:db && pnpm start", "start:docker": "pnpm start:docker:db && pnpm start",
"start:docker:db": "cd src/server && pnpm db:migrate:apply", "start:docker:db": "cd src/server && pnpm db:migrate:apply",
"postinstall": "cd src/server && pnpm db:generate",
"test": "vitest", "test": "vitest",
"build": "pnpm build:tracker && pnpm build:server && pnpm build:client && pnpm build:geo", "build": "pnpm build:tracker && pnpm build:server && pnpm build:client && pnpm build:geo",
"build:client": "cd src/client && pnpm build", "build:client": "cd src/client && pnpm build",