yarn
yarn copied to clipboard
Unable to set a custom non-semver version number
Hello folks
Tried here to set version in package.json in a non-semver format (our company has a very different versioning).
All my attempts have failed so far and yarn always complains that it must be in x.y.z format. Even the hidden config looseSemver doesn't have an impact.
Here an example
$ yarn version --no-git-tag-version --new-version 'I am a non-semver version number'
yarn version v1.22.4
error Invalid version supplied.
info Visit https://yarnpkg.com/en/docs/cli/version for documentation about this command.
Would be great to allow this. Versioning format cannot be always semver, there are companies out there using a totally different verisoning.
I have the same problem, I need to set a different versioning