From 2025766bb742a16971e5f9fd881e234d77d5b254 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Murat=20Go=CC=88zel?= Date: Tue, 2 Aug 2022 16:16:36 +0300 Subject: [PATCH] npm version field gets its value from semver coerce method to fix calver incompatability. --- package.json | 2 +- src/plugins/npm.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index f7dfc3a..4095ac4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-releaser", - "version": "0.7.6", + "version": "0.7.7", "description": "Automated versioning and package publishing tool. Supports semver and calver. Extendible with plugins.", "main": "src/index.js", "bin": { diff --git a/src/plugins/npm.js b/src/plugins/npm.js index dda9778..9a06985 100644 --- a/src/plugins/npm.js +++ b/src/plugins/npm.js @@ -19,7 +19,6 @@ function npm() { } async function beforePush(nextTag) { - console.log(semver.valid(semver.coerce(nextTag))); updatePkgJson('version', semver.valid(semver.coerce(nextTag))) }