fix: also declare pnpm build-script policy in package.json (#7525)

Some pnpm versions don't read onlyBuiltDependencies / ignoredBuiltDependencies
from pnpm-workspace.yaml — leaving CI on plugin repos to fail with
ERR_PNPM_IGNORED_BUILDS even after #7523 added the workspace.yaml entries.

Mirror the same configuration into package.json's "pnpm" field, which is
the older (and more widely supported) location. The two files are kept in
sync; whichever pnpm version reads the values picks them up from one or
the other.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
John McLear 2026-04-16 14:42:05 +01:00 committed by GitHub
parent 2a264eacc2
commit 58c8e26eb1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -50,5 +50,13 @@
},
"engineStrict": true,
"version": "2.6.1",
"license": "Apache-2.0"
"license": "Apache-2.0",
"pnpm": {
"onlyBuiltDependencies": [
"esbuild"
],
"ignoredBuiltDependencies": [
"@scarf/scarf"
]
}
}