Opened 4 weeks ago
Last modified 3 weeks ago
#62839 new defect (bug)
sync-gutenberg-packages script is not respecting .npmrc file
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 6.8 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Build/Test Tools | Keywords: | needs-patch |
Focuses: | Cc: |
Description
It seems that running npm sync-gutenberg-packages
results in some packages being duplicated within the package-lock.json
file despite prefer-dedupe
being set to true
in .npmrc
.
To test, run the following steps and committing after each one to a test branch, or staging changes so further changes are trackable:
- run
npm dedupe
ontrunk
to properly dedupe. - run
npm sync-gutenberg-packages
. - run
npm dedupe
.
There is also the following error when running sync-gutenberg-packages
:
wordpress-develop/tools/release/sync-gutenberg-packages.js:110
const versionConflicts = Object.entries( packageLock.dependencies )
TypeError: Cannot convert undefined or null to object
This may be related to ticket:62190#comment:17 from @kevin940726.