[wp-trac] [WordPress Trac] #62839: sync-gutenberg-packages script is not respecting .npmrc file

WordPress Trac noreply at wordpress.org
Wed Jan 22 01:13:33 UTC 2025


#62839: sync-gutenberg-packages script is not respecting .npmrc file
------------------------------+-------------------------
 Reporter:  desrosj           |      Owner:  (none)
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  6.8
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:  needs-patch
  Focuses:                    |
------------------------------+-------------------------
 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62839>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list