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

Implements yarn init --install #618

Merged
merged 5 commits into from Dec 2, 2019
Merged

Implements yarn init --install #618

merged 5 commits into from Dec 2, 2019

Conversation

arcanis
Copy link
Member

@arcanis arcanis commented Dec 2, 2019

What's the problem this PR addresses?

I've implemented yarn init --install in yarnpkg/yarn#7723, but it's currently missing in the v2.

More generally, the problem is that starting a new Berry project is fairly annoying since it requires multiple commands:

yarn init -y
yarn policies set-version berry
<edit the package.json>

How did you fix it?

The --install flag forces a Yarn version to be installed in the target directory, and the yarn init command that will run will be provided by the version configured. This makes it very easy to start new projects with any Yarn version you'd want.

@arcanis arcanis merged commit 2d72773 into master Dec 2, 2019
@arcanis arcanis deleted the mael/init-install branch December 2, 2019 14:41
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.

None yet

1 participant