Socket
Socket
Sign inDemoInstall

release-it

Package Overview
Dependencies
360
Maintainers
1
Versions
393
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 16.2.0 to 16.2.1

6

lib/cli.js

@@ -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 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc