Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(js): generate package.json with overrides and resolutions #27601

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

jaysoo
Copy link
Member

@jaysoo jaysoo commented Aug 22, 2024

This PR ensures that overrides and resolutions are in the generated package.json file as well. If they are missing, then using --frozen-lockfile will fail due to mismatched overrides in the lockfile.

Also adds a skipOverrides flag to the affected executors and plugins -- same as skipPackageManger that was added previously.

Affected executors/plugins:

  • @nx/vite:build
  • @nx/webpack:webpack
  • @nx/remix:build
  • @nx/next:build
  • NxAppWebpackPlugin

Current Behavior

Expected Behavior

Related Issue(s)

Fixes #26884

@jaysoo jaysoo requested review from a team and Coly010 as code owners August 22, 2024 19:42
Copy link

vercel bot commented Aug 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview Aug 22, 2024 8:44pm

@jaysoo jaysoo enabled auto-merge (squash) August 22, 2024 21:21
@jaysoo jaysoo disabled auto-merge August 22, 2024 21:21
@jaysoo jaysoo merged commit 042049c into master Aug 22, 2024
6 checks passed
@jaysoo jaysoo deleted the feat/generate-overrides branch August 22, 2024 21:21
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PNPM 9.5 Overrides problem on the auto generate package json for @nx/webpack:webpack
2 participants