Skip to content

Commit 86fb998

Browse files
committed
build step
1 parent c1bbeb1 commit 86fb998

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

packages/database/package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@
1111
"init": "supabase login",
1212
"dev": "supabase start",
1313
"stop": "supabase stop",
14+
"build": "npm run lint && npm run gentypes:local && npm run dbdiff",
1415
"lint": "sqruff lint supabase/schemas",
1516
"lint:fix": "sqruff fix supabase/schemas",
16-
"local-types": "supabase start && supabase gen types typescript --local --schema public > types.gen.ts",
17-
"active-types": "supabase start && supabase gen types typescript --project-id \"$PRODUCTION_PROJECT_ID\" --schema public > types.gen.ts",
18-
"new-migration": "supabase stop && supabase db diff -f ",
17+
"gentypes:local": "supabase start && supabase gen types typescript --local --schema public > types.gen.ts",
18+
"gentypes:production": "supabase start && supabase gen types typescript --project-id \"$PRODUCTION_PROJECT_ID\" --schema public > types.gen.ts",
19+
"dbdiff": "supabase stop && supabase db diff",
20+
"dbdiff:save": "supabase stop && supabase db diff -f ",
1921
"deploy": "supabase db push --project-id \"$PRODUCTION_PROJECT_ID\""
2022
},
2123
"devDependencies": {

0 commit comments

Comments
 (0)