-
Notifications
You must be signed in to change notification settings - Fork 776
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use predev and prebuild hooks for Prisma generate
- Loading branch information
1 parent
09df9d1
commit 2c2bf54
Showing
1 changed file
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|