nx icon indicating copy to clipboard operation
nx copied to clipboard

feat(core): add support for pnpm lockfile v9

Open meeroslav opened this issue 1 year ago • 5 comments

  • [X] Fix parenthesis separator detection
  • [x] Fix leading dash detection
  • [x] Migrate existing pnpm normalizer to latest code
  • [X] Add unit tests for v9
  • [X] Dogfooding Pnpm v9 to Nx repo and agents

Current Behavior

Expected Behavior

Related Issue(s)

Fixes #22850

Potentially fixes #23256

meeroslav avatar Apr 19 '24 12:04 meeroslav

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

1 Ignored Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview May 27, 2024 4:41pm

vercel[bot] avatar Apr 19 '24 12:04 vercel[bot]

great work @meeroslav ! would it also be useful to raise an error if the lockfileVersion encountered is outside the expected range?

mattfysh avatar Apr 28 '24 07:04 mattfysh

@meeroslav please don't blindly accept lockfiles whose versions are higher than 9, this is how the release of pnpm v9 caused all sorts of issues that didn't immediately map back to lockfile format support

please, if the lockfileVersion > 9 then throw an error to indicate that nx does not support that lockfile - this will save a lot of headaches in future

mattfysh avatar May 17 '24 08:05 mattfysh

Thank you @mattfysh, that's a good feedback.

meeroslav avatar May 17 '24 08:05 meeroslav

This is amazing news! That’s the last link in the chain needed for pnpm@9 support for Nx 🙌 thank you so much

terrymun avatar May 27 '24 21:05 terrymun

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[bot] avatar Jun 05 '24 00:06 github-actions[bot]