Skip to content

Commit 57825f9

Browse files
authored
eng-923-merge-error-use-pnpm-in-tasks (#471)
1 parent 0c5ad67 commit 57825f9

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

packages/database/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@
2222
},
2323
"scripts": {
2424
"init": "supabase login",
25-
"setup": "npm run genenv && npm run migrate",
26-
"dev": "npm run setup && npm run serve",
27-
"build": "npm run setup && tsc",
25+
"setup": "pnpm run genenv && pnpm run migrate",
26+
"dev": "pnpm run setup && pnpm run serve",
27+
"build": "pnpm run setup && tsc",
2828
"serve": "tsx scripts/serve.ts",
2929
"stop": "supabase stop",
3030
"check-types": "tsc --noEmit --skipLibCheck",
31-
"check-schema": "tsx scripts/lintSchemas.ts && supabase stop && npm run dbdiff",
31+
"check-schema": "tsx scripts/lintSchemas.ts && supabase stop && pnpm run dbdiff",
3232
"lint": "eslint . && tsx scripts/lintSchemas.ts && tsx scripts/lintFunctions.ts",
3333
"lint:fix": "eslint --fix . && tsx scripts/lintSchemas.ts -f && tsx scripts/lintFunctions.ts",
3434
"migrate": "tsx scripts/migrate.ts",
35-
"test": "npm run build && cucumber-js",
35+
"test": "pnpm run build && cucumber-js",
3636
"genenv": "tsx scripts/createEnv.mts",
3737
"gentypes": "tsx scripts/genTypes.ts",
3838
"dbdiff": "supabase stop && supabase db diff",

packages/database/scripts/migrate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ const migrationLines = stderr
106106
if (migrationLines.length > 0) {
107107
console.log(migrationLines.join("\n"));
108108
console.log("Migrations were applied, regenerating dbTypes");
109-
const generateResult = spawnSync("npm", ["run", "gentypes"], {
109+
const generateResult = spawnSync("pnpm", ["run", "gentypes"], {
110110
cwd: projectRoot,
111111
stdio: "inherit",
112112
});

0 commit comments

Comments
 (0)