Search code examples
yarnpkgversioningpackage.jsonyarnpkg-v2yarn-v2

CLI bump version number with yarn berry


I recently upgraded yarn to yarn berry (v2) and I can't find any equivalent of yarn version --patch. The documentation about differences related to cli commands do not mention yarn version.

Is there a way to bump a package version number using yarn berry cli ?


Solution

  • Cf yarn version

    Apply a new version to the current package.

    Immediately bump the version to the next major :

    yarn version major
    

    So just replace major by patch in your case