Keep onlyBuiltDependencies in both package.json and pnpm-workspace.yaml
CI / secrets-scan (push) Successful in 6s
CI / sast (push) Successful in 13s
CI / vuln-scan (push) Successful in 15s
CI / test (push) Failing after 28s
CI / lint (push) Failing after 28s
CI / build-images (push) Has been skipped
CI / image-scan (push) Has been skipped
CI / push (push) Has been skipped
CI / secrets-scan (push) Successful in 6s
CI / sast (push) Successful in 13s
CI / vuln-scan (push) Successful in 15s
CI / test (push) Failing after 28s
CI / lint (push) Failing after 28s
CI / build-images (push) Has been skipped
CI / image-scan (push) Has been skipped
CI / push (push) Has been skipped
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) <noreply@anthropic.com>
This commit is contained in:
@@ -16,6 +16,16 @@
|
|||||||
"format": "prettier --write \"**/*.{ts,tsx,js,jsx,json,css,md}\"",
|
"format": "prettier --write \"**/*.{ts,tsx,js,jsx,json,css,md}\"",
|
||||||
"format:check": "prettier --check \"**/*.{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": {
|
"devDependencies": {
|
||||||
"prettier": "3.8.2"
|
"prettier": "3.8.2"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user