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

Should ejecting change lockfile? #2627

Closed
gaearon opened this issue Jun 26, 2017 · 3 comments
Closed

Should ejecting change lockfile? #2627

gaearon opened this issue Jun 26, 2017 · 3 comments

Comments

@gaearon
Copy link
Contributor

gaearon commented Jun 26, 2017

I think the way we run yarn after ejecting doesn't quite make sense because we don't update the lockfile. Should we have been running yarn remove and yarn add for Yarn users instead?

I'm not sure I understand the best practice here.

@luftywiranda13
Copy link
Contributor

luftywiranda13 commented Jun 27, 2017

I think the lockfile should be regenerated after ejecting. maybe by executing dependencies installation with yarn or by passing --force flag to yarn command.

https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/scripts/eject.js#L219-L225

this is the description of yarn install --force:
install and build packages even if they were built before, overwrite lockfile

@gaearon
Copy link
Contributor Author

gaearon commented Jun 27, 2017

Tagging for contributions. I'm not sure just regenerating lockfile is a good idea since it loses existing lockfile information (which could refer to runtime dependencies). Potentially breaking your code.

We should probably run a bunch of yarn add / yarn remove commands (is it possible to batch them?) While there, whoever looks into this would need to undo #2634 and hopefully figure out a solution to it. So this likely won't be easy.

@gaearon
Copy link
Contributor Author

gaearon commented Jan 20, 2018

I fixed this in #3806.

@gaearon gaearon closed this as completed Jan 20, 2018
@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 a pull request may close this issue.

2 participants