From f095cb821a05c25c084a4276ae43418f9e580974 Mon Sep 17 00:00:00 2001 From: Marc-Antoine Parent Date: Tue, 30 Sep 2025 21:24:09 -0400 Subject: [PATCH] eng-923-merge-error-use-pnpm-in-tasks --- packages/database/package.json | 10 +++++----- packages/database/scripts/migrate.ts | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/database/package.json b/packages/database/package.json index c969c073e..c8bda01eb 100644 --- a/packages/database/package.json +++ b/packages/database/package.json @@ -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", diff --git a/packages/database/scripts/migrate.ts b/packages/database/scripts/migrate.ts index d15c8a028..42e5807ba 100644 --- a/packages/database/scripts/migrate.ts +++ b/packages/database/scripts/migrate.ts @@ -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", });