Make WordPress Core

Opened 4 weeks ago

Last modified 3 weeks ago

#62839 new defect (bug)

sync-gutenberg-packages script is not respecting .npmrc file

Reported by: desrosj's profile desrosj 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 on trunk 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.

Change History (2)

This ticket was mentioned in Slack in #core by johnbillion. View the logs.


4 weeks ago

This ticket was mentioned in Slack in #core by johnbillion. View the logs.


3 weeks ago

Note: See TracTickets for help on using tickets.