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

fix(init): use yarn as package manager when calling init with npx #2216

Merged
merged 1 commit into from
Dec 19, 2023

Conversation

szymonrybczak
Copy link
Collaborator

Summary:

Fixes #2213, when using npx -> npm_config_user_agent is npm.

Test Plan:

Not really tested, reverts old behaviour when user has strange setup.

Checklist

  • Documentation is up to date to reflect these changes.
  • Follows commit message convention described in CONTRIBUTING.md

@szymonrybczak szymonrybczak force-pushed the feat/use-yarn-when-running-init-with-npx branch from 4155a37 to 73af362 Compare December 19, 2023 16:56
@thymikee thymikee merged commit 3906b90 into main Dec 19, 2023
10 checks passed
@thymikee thymikee deleted the feat/use-yarn-when-running-init-with-npx branch December 19, 2023 17:07
@szymonrybczak
Copy link
Collaborator Author

I think we can backport this one cc @thymikee

@thymikee
Copy link
Member

It's on the 12.x branch now, we'll include it in the next minor bump

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

init newproject --template modifying react-native.config.js causes error and yarn isn't used by default
3 participants