Skip to content

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

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

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>

package.keywords = keywords
return package
class YarnPnpHandler(BaseNpmHandler):
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No tests are added, manifest handler is not activated.
Please don't open PRs which don't have enough code to be reviewed, this is not useful and wastes time.

@AyanSinhaMahapatra
Copy link
Copy Markdown
Member

Closing as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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"

2 participants