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

support yarn pnp for nodeAddonIncludes #7123

Merged
merged 2 commits into from
Mar 15, 2021
Merged

Conversation

Mesteery
Copy link
Contributor

@Mesteery Mesteery commented Mar 7, 2021

This solves problems with Yarn PnP and node addon includes.

✅ Works correctly.

@Mesteery Mesteery force-pushed the patch-1 branch 2 times, most recently from 1330360 to 6855ddb Compare March 7, 2021 17:46
@ghost
Copy link

ghost commented Mar 7, 2021

CLA assistant check
All CLA requirements met.

This solves problems with Yarn PnP and node addon includes.
@Mesteery Mesteery marked this pull request as ready for review March 7, 2021 19:39
@sean-mcmanus
Copy link
Collaborator

Thanks for the contribution. We'll try to review this later this week.

@sean-mcmanus sean-mcmanus requested review from a team and sean-mcmanus March 8, 2021 21:59
Copy link
Collaborator

@sean-mcmanus sean-mcmanus left a comment

Choose a reason for hiding this comment

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

The stdout I get from yarn is

'yarn node v1.19.1\n"<workspaceFolder>\node_modules\\node-addon-api"\nDone in 0.51s.'

which isn't processed correctly because the code just expects the middle line. Is that supposed to work correctly and/or how are you getting it to work?

@Mesteery
Copy link
Contributor Author

This is normal, because it's for Yarn Berry.
https://yarnpkg.com/getting-started/install

@sean-mcmanus
Copy link
Collaborator

This is normal, because it's for Yarn Berry.
https://yarnpkg.com/getting-started/install

Ah, thanks. I'll look into that tomorrow.

@sean-mcmanus sean-mcmanus requested a review from a team March 13, 2021 00:35
@sean-mcmanus sean-mcmanus merged commit 8285897 into microsoft:main Mar 15, 2021
@Mesteery Mesteery deleted the patch-1 branch March 15, 2021 21:40
@github-actions github-actions bot locked and limited conversation to collaborators Apr 30, 2021
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.

2 participants