Files
pnpm/.changeset/cold-weeks-work.md

893 B

@pnpm/workspace.manifest-writer, @pnpm/types, @pnpm/config, pnpm
@pnpm/workspace.manifest-writer @pnpm/types @pnpm/config pnpm
minor minor minor minor

Added support for allowBuilds, which is a new field that can be used instead of onlyBuiltDependencies and ignoredBuiltDependencies. The new allowBuilds field in your pnpm-workspace.yaml uses a map of package matchers to explicitly allow (true) or disallow (false) script execution. This allows for a single, easy-to-manage source of truth for your build permissions.

Example Usage. To explicitly allow all versions of esbuild to run scripts and prevent core-js from running them:

allowBuilds:
  esbuild: true
  core-js: false

The example above achieves the same result as the previous configuration:

onlyBuiltDependencies:
  - esbuild
ignoredBuiltDependencies:
  - core-js

Related PR: #10311