Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Block lifecycle scripts (preinstall/install/postinstall/prepare) from
# dependencies. Mitigates supply-chain attacks that rely on install scripts.
# Note: this also skips this project's own `prepare` script, so the husky
# git hooks must be installed manually (see CONTRIBUTING.md).
ignore-scripts = true

# Refuse to install package versions younger than this many days. Mitigates
# fast-pulled malicious releases. Requires npm >= 11; uncomment once the
# project's minimum npm version (and/or .nvmrc Node version) is raised to
# ship npm 11+ by default.
# See https://docs.npmjs.com/cli/v11/using-npm/config#min-release-age
# min-release-age = 7

# Pin exact versions when installing new packages instead of using ^/~ ranges.
save-exact = true

# Hard-enforce the `engines` field in package.json so contributors and CI
# fail fast on too-old Node/npm. Uncomment once the project's minimum Node
# version is raised; with the current floor (`engines.node >= 20.19.0`),
# enabling this breaks on lint-staged@17, which requires Node >= 22.22.1.
# engine-strict = true

# WordPress ecosystem defaults (matching wordpress-develop and Gutenberg),
# except for the unnecessary `legacy-peer-deps = true`.
lockfile-version = 3
prefer-dedupe = true
Loading