Skip to content

docs: document the allowScripts field in package.json - #9817

Open
Nohgh wants to merge 1 commit into
npm:latestfrom
Nohgh:docs/document-allowscripts-in-package-json
Open

docs: document the allowScripts field in package.json#9817
Nohgh wants to merge 1 commit into
npm:latestfrom
Nohgh:docs/document-allowscripts-in-package-json

Conversation

@Nohgh

@Nohgh Nohgh commented Jul 29, 2026

Copy link
Copy Markdown

The allowScripts field is documented in the npm approve-scripts and npm deny-scripts command docs, but it is missing from the package.json field reference.

This adds a dedicated section so the field can be found alongside related fields like scripts.

What's included

  • Placed the new section right after scripts, since it governs which
    dependencies may run their lifecycle scripts
  • Documented the default blocking behavior, version-pinned vs name-only
    entries, and the false (deny) semantics, matching the wording of the
    existing command docs
  • No behavior changes — documentation only

References

@Nohgh
Nohgh requested review from a team as code owners July 29, 2026 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant