NxEnterprise
    Nx
    fix(js): preserve npm allowScripts allowlist in pruned package.json The @nx/js:prune-lockfile executor built its output package.json from only the project package.json, so the npm `allowScripts` install-script allowlist (which `npm approve-scripts` writes to the workspace root) was dropped from the pruned output. `npm ci` in the deployed artifact then ran install scripts the allowlist was meant to gate, and under npm's upcoming strict mode an approved script would instead be blocked. Carry the root `allowScripts` into the pruned package.json, with any project-level entries preserved and winning on conflict. This mirrors the existing `pnpm.allowBuilds` handling in createPackageJson.
    nx build workspace-plugin
Sign in / Sign up
Succeeded
CI Pipeline Execution

nx build workspace-plugin

Click to copy
36016
100%

Cache hits

2 of 2 tasks used cache.

© 2026 - Nx Cloud

Terms of ServicePrivacy PolicyChangelogStatusDocsContact Nx CloudPricingCompany@NxDevTools