-
Notifications
You must be signed in to change notification settings - Fork 262
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
Add support to choose a package manager in hydrogen init
#1958
Conversation
Oxygen deployed a preview of your
Learn more about Hydrogen's GitHub integration. |
We detected some changes in |
create-hydrogen
hydrogen init
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.
Thanks!
Update cli-kit to latest version
I see you mentioned this but it's not changed in the PR. We are already upgrading to cli-kit 3.58 in #1946 so maybe we can merge this one as is?
Yeah, I initially planned to upgrade cli-kit but didn't. Forgot to remove that from the description |
I can't merge the PR, so feel free to merge :) |
WHY are these changes introduced?
The Global CLI will run
create-hydrogen
and we need a way to either select a package manager or tell hydrogen to show a prompt to select one.WHAT is this pull request doing?
--package-manager
flag to theinit
commandHOW to test your changes?
Use
npx shopify hydrogen init --package-manager pnpm
to create a project using pnpmUse
npx shopify hydrogen init --package-manager unknown
to force a prompt to select a package managerPost-merge steps
Checklist