-
Notifications
You must be signed in to change notification settings - Fork 4k
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
(cdk-cli): (Does't use pnpm to install dependencies when invoked with pnpx) #23205
Comments
Under the hood we're executing an npm install while aws-cdk/packages/aws-cdk/lib/init.ts Line 300 in 482dcca
|
I see, I am up for contribution. Does it get passed in command line arguments? |
Glad to hear you're interested in contributing! Be sure to check out our contributing guide I'm not sure there's a way to detect if |
@peterwoodworth I found a library which parses the package manager from environment variable - https://github.com/zkochan/packages/tree/main/which-pm-runs I will integrate this with fallback to npm. Let me know if this works for you. |
@ShivamJoker The templates are currently fixed for If you are looking at improving your personal/company workflow. May I suggest you have a look at projen which fully support pnpm |
@mrgrain I don't see the downside of improving the developer experience. I looked at |
@mrgrain The Yarn Rulebook advises using It's at least portable amongst |
Absolutely. I reckon there are 3 places that would need to be adjusted:
|
Describe the bug
When I try to init CDK with
pnpm
it starts installing dependencies usingnpm
Expected Behavior
CDK should use
pnpm
to install dependencies instead of just going fornpm
Current Behavior
Installs package using npm
Reproduction Steps
Create a new project with
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.53.0
Framework Version
No response
Node.js Version
16
OS
Arch Linux
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: