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

Added yarnpkg.cmd batch shim for backwards-compatibility on Windows (#2534) #2746

Merged
merged 1 commit into from
Feb 25, 2017
Merged

Added yarnpkg.cmd batch shim for backwards-compatibility on Windows (#2534) #2746

merged 1 commit into from
Feb 25, 2017

Conversation

AaronHarris
Copy link
Contributor

References: #2534, facebook/create-react-app#1555, facebook/create-react-app#1365

Summary

Calling yarnpkg on Windows previously did not call Yarn

'yarnpkg' is not recognized as an internal or external command,
operable program or batch file.

yarnpkg command is used by create-react-app instead of yarn to prevent collision with other programs by that name in a user's PATH (See facebook/create-react-app#1365). However on Windows, running create-react-app falls back to installation via npm because no yarnpkg command is found. This PR restores the expected functionality where Yarn is used to install packages for create-react-app if it is installed.

Test plan

Tested on Windows 10 x64. Words identically to existing yarn.cmd.

@Daniel15 Daniel15 merged commit 3d20a52 into yarnpkg:master Feb 25, 2017
@Daniel15
Copy link
Member

Thanks!

@AaronHarris AaronHarris deleted the patch-1 branch February 25, 2017 09:56
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.

2 participants