normalize-package-data
normalize-package-data copied to clipboard
[BUG] Allow sentimental versioning
This error is thrown in my project
Error: Invalid version: "207-alpha1-SNAPSHOT"
Our version in package.json is sentimental, not in semver.
In error stack trace I can see above error comes from
...
at Object.fixVersionField (.../node_modules/normalize-package-data/lib/fixer.js:191:13)
at .../node_modules/normalize-package-data/lib/normalize.js:32:38
at Array.forEach (<anonymous>)
at normalize (.../node_modules/normalize-package-data/lib/normalize.js:31:15)
at Function.module.exports.sync (.../node_modules/webpack-babel-env-deps/node_modules/read-pkg/index.js:43:36)
Not sure if this is related to your project. Feel free to close if I'm wrong here.
Thanks.
Ping? Anyone?
one of the requirements for npm packages is that their version field conform to semver.
See the docs for more info https://docs.npmjs.com/cli/v7/configuring-npm/package-json#version