Skip to content
Merged
Show file tree
Hide file tree
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: 23 additions & 3 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,24 @@
# We do not use npm, but if it was ever run by accident, this should make sure that pre- and post-install scripts will
# NOT run. This is more or less in line with pnpm behaviour where pre- and post-install scripts need to be added using
# pnpm approve-builds
# Configure pnpm so peer dependencies must be explicitly added instead of being automatically installed.
auto-install-peers=false

# Configure pnpm so that it will not install any package that claims to not be compatible with the current Node.js
# version.
engine-strict=true

# This is an npm only setting. We do not use npm, but if it is run by accident, this setting prevents pre- and
# post-install scripts from executing. This is aligns with pnpm's behaviour, where these scripts must be explicitly
# approved with `pnpm approve-builds`.
ignore-scripts=true

# Configure pnpm so it only installs package versions that have been published on the npm registry for at least 24 hours
# (1440 minutes). This helps mitigate the risk of supply chain attacks by avoiding newly published, potentially
# malicious versions.
minimum-release-age=1440

# Configure pnpm to save exact version numbers (not including ^ or ~) in package.json. Lock dependencies to specific
# versions to ensure reproducible installs and prevent automatic upgrades to newer minor or patch releases.
save-exact=true
save-prefix=

# Configure pnpm to not fail when there are missing or invalid peer dependencies in the tree.
strict-peer-dependencies=false
12 changes: 0 additions & 12 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,7 @@ packages:
- packages/*
- proprietary/*

autoInstallPeers: false

engineStrict: true

minimumReleaseAge: 1440

onlyBuiltDependencies:
- "@parcel/watcher"
- esbuild
- sharp

saveExact: true

savePrefix: ""

strictPeerDependencies: false