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
yarn pnp support #3586
Comments
Interesting! This certainly sounds like a promising improvement. |
A first stable version of Yarn 2 has been announced on 24 January 2020: https://dev.to/arcanis/introducing-yarn-2-4eh1 One of the biggest changes is that Plug'n'Play is enabled by default. You can expect that more and more people will start using it. I just tried it too, only to see it failing and eventually find this GH issue. Looking at the Migration Guide, I think you do not need to support PnP specially. If Pulumi can detect a |
Looking at the NodeJS shim, I see some functionality assuming there is a This will make it a bit harder to get Yarn 2 support in I guess. 😕 |
For the people who already want to use the other nice features of Yarn 2, but don't be locked out due to PnP, you can still disable it. I found how to disable it in this StackOverflow answer:
|
Just in case this helps anyone out and I appreciate it's only a stop-gap however |
Would adding an official template here help? When you create a project, you would run... $ pulumi new typescript-pnp ...to get a project skeleton using Yarn Berry PNP instead of NPM. Supposing this was possible, WDYT? cc: @ringods and anyone who wants to chime in! :^D |
@RobbieMcKinstry Yarn Berry PNP doesn't work at the moment. Some time ago, I tried to submit a PR but failed because there are so many places within the Pulumi CLI which expects a |
Dang... I was hopeful there might be an expedient solution. |
Long term, I want us to decouple the SDKs from ecosystem tools. |
Reporting the same problem for Pulumi project in a |
On my machine, a kubernetes-typescript install takes:
200 seconds with a standard install
20 seconds with yarn PNP
First-class Yarn PNP support would be appreciated as it would mean much faster project startup time.
Error:
Reproduction
Create a package.json
The tree should now look like this:
tree
The text was updated successfully, but these errors were encountered: