wordpress/.npmrc
Jonathan Desrosiers e9e9d291f1 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
2024-10-10 15:56:39 +00:00

6 lines
105 B
Plaintext

engine-strict = true
legacy-peer-deps = true
lockfile-version = 3
prefer-dedupe = true
save-exact = true