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

Adds support for --install in yarn init #7723

Merged
merged 2 commits into from
Dec 1, 2019
Merged

Adds support for --install in yarn init #7723

merged 2 commits into from
Dec 1, 2019

Conversation

arcanis
Copy link
Member

@arcanis arcanis commented Dec 1, 2019

Summary

Initializing projects using Yarn v2 is fairly annoying when the v1 is the global binary (which it often is), since you need to first run yarn init, then yarn policies set-version, then change the package.json to match what you'd expect if the v2 was initialising the project.

To streamline the process, the --install flag will automatically call yarn policies set-version followed by yarn init.

Test plan

n/a

@buildsize
Copy link

buildsize bot commented Dec 1, 2019

File name Previous Size New Size Change
yarn-[version].noarch.rpm 1.18 MB 1.18 MB 191 bytes (0%)
yarn-[version].js 4.86 MB 4.86 MB 1.2 KB (0%)
yarn-legacy-[version].js 5.05 MB 5.05 MB 1.19 KB (0%)
yarn-v[version].tar.gz 1.19 MB 1.19 MB 199 bytes (0%)
yarn_[version]all.deb 869.41 KB 869.65 KB 252 bytes (0%)

@arcanis arcanis merged commit 11872ca into master Dec 1, 2019
VincentBailly pushed a commit to VincentBailly/yarn that referenced this pull request Jun 10, 2020
* Adds support for --install in yarn init

* Updates the CHANGELOG
VincentBailly pushed a commit to VincentBailly/yarn that referenced this pull request Jun 10, 2020
* Adds support for --install in yarn init

* Updates the CHANGELOG
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.

1 participant