# Supply-chain hardening. Install dependencies with `npm ci`.

# Never run lifecycle scripts (preinstall, install, postinstall, prepare...)
# of any package. Explicit `npm run <script>` still works, but pre/post hooks
# are skipped.
ignore-scripts=true

# Only fetch packages from the public registry over verified TLS.
registry=https://registry.npmjs.org/
strict-ssl=true

# Refuse git dependencies, which bypass the registry and run `git` (and the
# package's prepare script) against a remote repository.
allow-git=none

# Only resolve versions published at least 7 days ago, so freshly
# compromised releases have time to be detected and pulled.
min-release-age=7

# Make `npm audit` fail on high and critical vulnerabilities.
audit-level=high
