From a551ec06b482432ae070ddb896c3a9896cc9f6b3 Mon Sep 17 00:00:00 2001 From: Kevin Riehl Date: Wed, 27 May 2026 14:32:53 -0700 Subject: [PATCH] Keep onlyBuiltDependencies in both package.json and pnpm-workspace.yaml The previous commit relied on pnpm-workspace.yaml alone, but that field is a pnpm 10+ feature. CI and the Dockerfiles both pin pnpm 9 (via corepack / pnpm/action-setup), and pnpm 9 only reads onlyBuiltDependencies from the package.json "pnpm" field. Without it, ERR_PNPM_IGNORED_BUILDS blocked the install. Keep both definitions in sync: pnpm 10 reads the workspace file (and emits a benign warning about the package.json field), pnpm 9 reads package.json. Also includes msw, a new transitive of vitest 4.x that now needs the explicit allow. Co-Authored-By: Claude Opus 4.7 (1M context) --- package.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/package.json b/package.json index 6f33c80..f57e920 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,16 @@ "format": "prettier --write \"**/*.{ts,tsx,js,jsx,json,css,md}\"", "format:check": "prettier --check \"**/*.{ts,tsx,js,jsx,json,css,md}\"" }, + "pnpm": { + "onlyBuiltDependencies": [ + "@nestjs/core", + "@prisma/client", + "@prisma/engines", + "msw", + "prisma", + "unrs-resolver" + ] + }, "devDependencies": { "prettier": "3.8.2" }