Skip to content

Commit e9e9d29

Browse files
committed
Build/Test Tools: Configure npm to prefer-dedupe.
`npm dedupe` is a command that attempts to simplify the structure of the local package tree by moving dependencies higher up. This allows for more effective package sharing, less transfer, and smaller `node_modules` folders. This change configures npm to `prefer-dedupe` by default so that these benefits persist and the command is not required to be run regularly. This also brings better alignment with the Gutenberg repository, which has already configured `prefer-dedupe`. Props jonsurrell. Fixes #62190. git-svn-id: https://develop.svn.wordpress.org/trunk@59207 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 292769d commit e9e9d29

File tree

3 files changed

+936
-925
lines changed

3 files changed

+936
-925
lines changed

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
engine-strict = true
22
legacy-peer-deps = true
33
lockfile-version = 3
4+
prefer-dedupe = true
45
save-exact = true

0 commit comments

Comments
 (0)