diff options
Diffstat (limited to 'deps/npm/node_modules/libnpmversion/lib/version.js')
-rw-r--r-- | deps/npm/node_modules/libnpmversion/lib/version.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/npm/node_modules/libnpmversion/lib/version.js b/deps/npm/node_modules/libnpmversion/lib/version.js index ee02fb7ffb..309b9c2b95 100644 --- a/deps/npm/node_modules/libnpmversion/lib/version.js +++ b/deps/npm/node_modules/libnpmversion/lib/version.js @@ -34,7 +34,7 @@ module.exports = async (newversion, opts) => { } = opts const { valid, clean, inc } = semver - const current = pkg.version + const current = pkg.version || '0.0.0' const currentClean = clean(current) const newV = valid(newversion, { loose: true }) ? clean(newversion, { loose: true }) |