Yarn: [upgrade-interactive] Add a flag for pre-release

Created on 22 Jun 2017  Â·  8Comments  Â·  Source: yarnpkg/yarn

Do you want to request a feature or report a bug?
Feature

What is the current behavior?
Only shows non-prerelease versions.

Would be useful for instance to upgrade all related packages to Babel 7 alpha.

What is the expected behavior?

$ yarn upgrade-interactive --include-pre

It should then include pre-releases as well.

cat-feature good first issue help wanted triaged

Most helpful comment

@fernandopasik any news on this one? I'd like to see this as a feature!

All 8 comments

Any news on this?

Also, I'm wondering if the --latest flag really use the latest tag of the repository or simply use the version with the higher semver…

Shouldn't be too hard to get a PR out for this if anyone is curious.

Has this been fixed? When I do an "upgrade-interactive --latest" it _does_ show pre-release beta versions as well.
image

I would like to work on this issue and I already had a look at the code for upgrade-interactive. Seems not too hard to modify. Can someone guide me on what exactly needs to be changed here.
Thanks

I would be interested in this as well - I'm currently using an alpha of istanbul to generate code coverage for ES6. Running yarn update --latest downgrades the installed version without warning, even though it is specifically pinned:

yarn upgrade --latest
git diff package.json
# -    "istanbul": "1.0.0-alpha.2",
# +    "istanbul": "0.4.5",

@BYK I've provided a PR for this could you take a look please? :)

@arcanis please could you help me or point me to a contributor that can review this?

@fernandopasik any news on this one? I'd like to see this as a feature!

Was this page helpful?
0 / 5 - 0 ratings