Skip to content

Commit

Permalink
feat: ensure db:generate is always run before build and dev (#236)
Browse files Browse the repository at this point in the history
* Update turbo.json to be more efficient.
* Add db:generate to build and dev scripts in turbo.json.

This ensures that db:generate is always run before dev and build, so that new developers will not get errors.
  • Loading branch information
rasitds authored Jun 24, 2023
1 parent 2562ae1 commit 8854459
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://turbo.build/schema.json",
"pipeline": {
"build": {
"dependsOn": ["^build"],
"dependsOn": ["^build", "^db:generate"],
"outputs": [".next/**", "!.next/cache/**", "dist/**"],
"env": [
"VERCEL_URL", "PORT", "NODE_ENV"
Expand All @@ -16,6 +16,7 @@
"outputs": []
},
"dev": {
"dependsOn": ["^db:generate"],
"cache": false
},
"start": {
Expand Down

0 comments on commit 8854459

Please sign in to comment.