-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
fix(create-app): distinguish pnpm pkgManager #4193
Conversation
packages/create-app/index.js
Outdated
? 'yarn' | ||
: /npm/.test(process.env.npm_execpath) | ||
? 'npm' | ||
: 'pnpm' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should make the fallout to npm
instead of pnpm
, for detecting what pm is used, here is a reference
https://github.com/zkochan/packages/blob/master/which-pm-runs/index.js
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments
Sorry, I can only barely understand what you mean because my English is not that good, but I think the modification I made may be what you mean, and thank you for your guidance. |
Description
When I use
pnpm init @vitejs/app
to create a vite app, finally it has two tip callednpm install
npm run dev
, so I think create-app can't distinguish pnpm pkgManager, more and more people are using pnpm, so I think it's better to do this, and now it can distinguish pnpm.Additional context
none
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123
).