From 58c8e26eb1b93e6b60b5b0a05dbd81c3642905cd Mon Sep 17 00:00:00 2001 From: John McLear Date: Thu, 16 Apr 2026 14:42:05 +0100 Subject: [PATCH] fix: also declare pnpm build-script policy in package.json (#7525) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- package.json | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 3fd3c7c4c..3f7d79d78 100644 --- a/package.json +++ b/package.json @@ -50,5 +50,13 @@ }, "engineStrict": true, "version": "2.6.1", - "license": "Apache-2.0" + "license": "Apache-2.0", + "pnpm": { + "onlyBuiltDependencies": [ + "esbuild" + ], + "ignoredBuiltDependencies": [ + "@scarf/scarf" + ] + } }