-
Go to each version's
npmrc
documenation page- v7: https://pnpm.io/7.x/npmrc
- v8: https://pnpm.io/npmrc (while latest, after: https://pnpm.io/8.x/npmrc)
-
Run this script in the browser developer tools to get the list of options
[...document.querySelectorAll('ul.table-of-contents > li > ul > li > a.table-of-contents__link')] .map(a => a.textContent) .join('\n')
This produces 76 entries for v7 and 78 entries for v8.
-
Save each to a respective
.npmrc
file and fill in the defaults per the docsThis gives us
7.npmrc
and8.npmrc
-
Diff the two configuration files to find removals/additions/changes:
git diff --no-index 7.npmrc 8.npmrc > diff.diff
diff --git a/7.npmrc b/8.npmrc index 61a345c..8308caa 100644 --- a/7.npmrc +++ b/8.npmrc @@ -13,7 +13,6 @@ modules-cache-max-age=10080 lockfile=true prefer-frozen-lockfile=true lockfile-include-tarball-url=false -use-lockfile-v6=false registry=https://registry.npmjs.org/ <URL>:_authToken= <URL>:tokenHelper= @@ -35,10 +34,10 @@ fetch-retry-factor=10 fetch-retry-mintimeout=10000 fetch-retry-maxtimeout=60000 fetch-timeout=60000 -auto-install-peers=false -dedupe-peer-dependents=false +auto-install-peers=true +dedupe-peer-dependents=true strict-peer-dependencies=false -resolve-peers-from-workspace-root=false +resolve-peers-from-workspace-root=true no-color=auto loglevel=info use-beta-cli=false @@ -57,8 +56,9 @@ node-mirror:<releaseDir>=https://nodejs.org/download/<releaseDir>/ link-workspace-packages=true prefer-workspace-packages=false shared-workspace-lockfile=true -save-workspace-protocol=true +save-workspace-protocol=rolling include-workspace-root=false +ignore-workspace-cycles=false use-running-store-server=false save-prefix='^' tag=latest @@ -71,6 +71,8 @@ update-notifier=true prefer-symlinked-executables=true, when node-linker is set to hoisted and the system is POSIX verify-store-integrity=true ignore-compatibility-db=false -resolution-mode=highest +resolution-mode=lowest-direct registry-supports-time-field=false extend-node-path=true +deploy-all-files=false +dedupe-direct-deps=false
-
Determine the changes:
use-v6-lockfile
was removed (wasfalse
) and becametrue
by default and is no longer configurable- https://github.com/pnpm/pnpm/releases/tag/v8.0.0 "Lockfile Modifications"
auto-install-peers
,dedupe-peer-dependents
andresolve-peers-from-workspace-root
changed totrue
(werefalse
)save-workspace-protocol
changed torolling
(wastrue
)ignore-workspace-cycles
was introduced and isfalse
resolution-mode
changed tolowest-direct
(washighest
)deploy-all-files
anddedupe-direct-deps
were introduced and arefalse
I cross-checked these with the release notes for PNPM 8 releases and they seem to line up!
-
Notifications
You must be signed in to change notification settings - Fork 0
TomasHubelbauer/pnpm-config-defaults
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published