Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions packages/database/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@
},
"scripts": {
"init": "supabase login",
"setup": "npm run genenv && npm run migrate",
"dev": "npm run setup && npm run serve",
"build": "npm run setup && tsc",
"setup": "pnpm run genenv && pnpm run migrate",
"dev": "pnpm run setup && pnpm run serve",
"build": "pnpm run setup && tsc",
"serve": "tsx scripts/serve.ts",
"stop": "supabase stop",
"check-types": "tsc --noEmit --skipLibCheck",
"check-schema": "tsx scripts/lintSchemas.ts && supabase stop && npm run dbdiff",
"check-schema": "tsx scripts/lintSchemas.ts && supabase stop && pnpm run dbdiff",
"lint": "eslint . && tsx scripts/lintSchemas.ts && tsx scripts/lintFunctions.ts",
"lint:fix": "eslint --fix . && tsx scripts/lintSchemas.ts -f && tsx scripts/lintFunctions.ts",
"migrate": "tsx scripts/migrate.ts",
"test": "npm run build && cucumber-js",
"test": "pnpm run build && cucumber-js",
"genenv": "tsx scripts/createEnv.mts",
"gentypes": "tsx scripts/genTypes.ts",
"dbdiff": "supabase stop && supabase db diff",
Expand Down
2 changes: 1 addition & 1 deletion packages/database/scripts/migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const migrationLines = stderr
if (migrationLines.length > 0) {
console.log(migrationLines.join("\n"));
console.log("Migrations were applied, regenerating dbTypes");
const generateResult = spawnSync("npm", ["run", "gentypes"], {
const generateResult = spawnSync("pnpm", ["run", "gentypes"], {
cwd: projectRoot,
stdio: "inherit",
});
Expand Down