Yarn: `yarn version` this should act same as `npm version`

Created on 5 Feb 2017  路  4Comments  路  Source: yarnpkg/yarn

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

What is the current behavior?
yarn version returns current version of yarn cli

If the current behavior is a bug, please provide the steps to reproduce.

  1. Install yarn v0.19.1.
  2. Run npm init -y
  3. Run yarn version

What is the expected behavior?
After executing a command yarn version - it should ask a version number then update the current package.json file, commit the new tag and so on. See the docs https://yarnpkg.com/docs/cli/version/

Please mention your node.js, yarn and operating system version.
Node: v7.3.0
NPM: 4.1.1
Operating System: Fedora 25 (Workstation Edition)
OSType: linux
Architecture: x86_64

Most helpful comment

Duplicate of #2491.

Fix will be released in 0.20.1.

This issue can be closed.

All 4 comments

The docs suggest it's supposed to work like npm, but it just spits out the version of yarn as mentioned above.

Duplicate of #2491.

Fix will be released in 0.20.1.

This issue can be closed.

:dash: Please add some tests or something - and do not broke the main API for "yarn". In some cases this issue is the critical

@FDiskas rather than complaining about the lack of test coverage here, you could contribute some. Another volunteer is already planning to look at some test coverage, but it's not too late for you to help.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

victornoel picture victornoel  路  3Comments

MunifTanjim picture MunifTanjim  路  3Comments

torifat picture torifat  路  3Comments

danez picture danez  路  3Comments

esphen picture esphen  路  3Comments