[wp-trac] [WordPress Trac] #62190: Improve npm dependency management
WordPress Trac
noreply at wordpress.org
Thu Oct 10 15:56:55 UTC 2024
#62190: Improve npm dependency management
------------------------------+-------------------------
Reporter: jonsurrell | Owner: desrosj
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.7
Component: Build/Test Tools | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: javascript
------------------------------+-------------------------
Changes (by desrosj):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"59207" 59207]:
{{{
#!CommitTicketReference repository="" revision="59207"
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.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62190#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list