Skip to content

Commit

Permalink
Use predev and prebuild hooks for Prisma generate
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesopstad committed Feb 10, 2025
1 parent 09df9d1 commit 2c2bf54
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
"private": true,
"type": "module",
"scripts": {
"prebuild": "pnpm generate",
"build": "vite build --app",
"check:types": "tsc --build",
"predev": "pnpm generate",
"dev": "vite dev",
"generate": "pnpm prisma generate",
"postinstall": "pnpm generate",
"migrate-db": "pnpm wrangler d1 migrations apply prisma-demo-db --local",
"preview": "vite preview",
"seed-db": "pnpm wrangler d1 execute prisma-demo-db --command \"INSERT INTO \"User\" (\"email\", \"name\") VALUES ('[email protected]', 'Jane Doe (Local)');\" --local"
Expand Down

0 comments on commit 2c2bf54

Please sign in to comment.