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

Don't run yarn after ejecting #2634

Merged
merged 1 commit into from
Jun 27, 2017
Merged

Don't run yarn after ejecting #2634

merged 1 commit into from
Jun 27, 2017

Conversation

gaearon
Copy link
Contributor

@gaearon gaearon commented Jun 27, 2017

This should fix #2624 and work around #2030.

Obviously it's not a very good workaround, but I'm running out of options and we need the CI to be working. The reason I'm okay with this solution is because current behavior is broken anyway. Re-running yarn makes no difference since we didn't change the lockfile, so it might as well be a no-op.

See #2627 for discussion of the proper fix.

@@ -220,8 +220,21 @@ inquirer
}

if (fs.existsSync(paths.yarnLockFile)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't the whole if statement be commented out and it just runs spawnSync('npm', ['install'], { stdio: 'inherit' }); every time?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If somebody has a lockfile they're likely using Yarn for development. Which means the versions they currently get might be more strict than allowed per semver. Running npm install on top risks giving them more fresh versions.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then looks like a perfectly reasonable temp fix to me.

@gaearon gaearon merged commit bed875c into master Jun 27, 2017
romaindso pushed a commit to romaindso/create-react-app that referenced this pull request Jul 10, 2017
wmonk referenced this pull request in wmonk/create-react-app-typescript Aug 7, 2017
morgs32 pushed a commit to BrickworkSoftware/create-react-app that referenced this pull request Sep 1, 2017
@Timer Timer deleted the gaearon-patch-15 branch October 29, 2017 18:46
@lock lock bot locked and limited conversation to collaborators Jan 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unbreak Appveyor CI
3 participants