Skip to content

Conversation

@jaysoo
Copy link
Contributor

@jaysoo jaysoo commented Apr 9, 2025

This PR fixes the lockfile bug as described here: #4167

Description

When NX_ISOLATE_PLUGIN was set to false, it uncovered an issue where Nx defaults npm_config_legacy_peer_deps environment variable to true. This means that subsequent npm install command is updating the lockfile (i.e. package-lock.json) in an unexpected manner.

Motivation and Context

Fixes #4167

How Has This Been Tested?

Manually making the changes locally and testing it.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (change that has absolutely no effect on users)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@nx-cloud
Copy link

nx-cloud bot commented Apr 9, 2025

View your CI Pipeline Execution ↗ for commit 4c2b6a8.

Command Status Duration Result
nx run-many --t e2e --parallel=1 ✅ Succeeded 11m 17s View ↗
nx run integration:integration --ci --maxWorkers=2 ✅ Succeeded 3m 22s View ↗
nx run-many -t lint --parallel=3 ✅ Succeeded 2m 7s View ↗
nx run-many -t test --parallel=3 --ci --maxWork... ✅ Succeeded 1m 50s View ↗
nx run-many -t build --parallel=3 ✅ Succeeded 1m 42s View ↗
nx run-many -t build ✅ Succeeded 4s View ↗
nx-cloud record -- npx nx format:check ✅ Succeeded 2s View ↗
nx run-many -t test --parallel=3 --ci --maxWork... ✅ Succeeded 3m 46s View ↗

☁️ Nx Cloud last updated this comment at 2025-04-09 17:34:01 UTC

janthurau added a commit to ueberdosis/hocuspocus that referenced this pull request Apr 9, 2025
janthurau added a commit to ueberdosis/hocuspocus that referenced this pull request Apr 9, 2025
@JamesHenry JamesHenry merged commit 0cd3241 into lerna:main Apr 10, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lerna v8.2.0+ removes package-lock.json dependencies on lerna version.

2 participants