Skip to content

Add Yarn v2 Plug and Play .pnp.cjs handler support#4875

Open
hashaam-011 wants to merge 1 commit intoaboutcode-org:developfrom
hashaam-011:yarn-pnp-support
Open

Add Yarn v2 Plug and Play .pnp.cjs handler support#4875
hashaam-011 wants to merge 1 commit intoaboutcode-org:developfrom
hashaam-011:yarn-pnp-support

Conversation

@hashaam-011
Copy link
Copy Markdown

Fixes #2728

Added a new YarnPnpHandler class in npm.py to support Yarn v2
Plug and Play .pnp.cjs files.

Changes:

  • Added YarnPnpHandler class that parses .pnp.cjs files
  • Extracts package dependencies from the embedded JSON data
  • Follows the same pattern as existing yarn handlers

Tested locally by parsing a sample .pnp.cjs file.

Signed-off-by: hashaam-011 <hashaamkhan975@gmail.com>
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.

Support new yarn-v2 ways of handling node modules with "plug and play"

1 participant