release-it
Advanced tools
Comparing version 16.2.0 to 16.2.1
@@ -29,5 +29,7 @@ import { readJSON } from './util.js'; | ||
export let version = () => log.log(`v${pkg.version}`); | ||
/** @internal */ | ||
export const version = () => log.log(`v${pkg.version}`); | ||
export let help = () => log.log(helpText); | ||
/** @internal */ | ||
export const help = () => log.log(helpText); | ||
@@ -34,0 +36,0 @@ export default async options => { |
@@ -73,5 +73,5 @@ import _ from 'lodash'; | ||
const { snapshot } = config.options; | ||
if (snapshot && !incrementBase.latestVersion.startsWith('0.0.0')) { | ||
if (snapshot && (!incrementBase.latestVersion.startsWith('0.0.0') || incrementBase.latestVersion === '0.0.0')) { | ||
// Reading the latest version first allows to increment the final counter, fake it if it's not a snapshot: | ||
incrementBase.latestVersion = `0.0.0-${snapshot}.-1`; | ||
incrementBase.latestVersion = `0.0.0-0`; | ||
} | ||
@@ -78,0 +78,0 @@ |
@@ -43,2 +43,3 @@ import url from 'node:url'; | ||
/** @internal */ | ||
export const getPluginName = pluginName => { | ||
@@ -45,0 +46,0 @@ if (pluginName.startsWith('.')) { |
{ | ||
"name": "release-it", | ||
"version": "16.2.0", | ||
"version": "16.2.1", | ||
"description": "Generic CLI tool to automate versioning and package publishing-related tasks.", | ||
@@ -100,5 +100,5 @@ "keywords": [ | ||
"eslint-plugin-prettier": "5.0.0", | ||
"fs-monkey": "1.0.4", | ||
"knip": "2.19.1", | ||
"memfs": "4.4.0", | ||
"fs-monkey": "1.0.5", | ||
"knip": "2.29.0", | ||
"memfs": "4.5.0", | ||
"mock-stdio": "1.0.3", | ||
@@ -109,3 +109,3 @@ "nock": "13.3.3", | ||
"remark-preset-webpro": "0.0.3", | ||
"sinon": "15.2.0", | ||
"sinon": "16.0.0", | ||
"strip-ansi": "7.1.0" | ||
@@ -112,0 +112,0 @@ }, |
237013
5660