From a28f89572a708cced69cc938f877eaa969dbad9e Mon Sep 17 00:00:00 2001 From: Ruy Adorno Date: Mon, 29 Mar 2021 10:43:36 -0400 Subject: [PATCH] libnpmversion@1.1.0 --- node_modules/libnpmversion/README.md | 5 +++++ node_modules/libnpmversion/lib/index.js | 2 ++ node_modules/libnpmversion/package.json | 2 +- package-lock.json | 14 +++++++------- package.json | 2 +- 5 files changed, 16 insertions(+), 9 deletions(-) diff --git a/node_modules/libnpmversion/README.md b/node_modules/libnpmversion/README.md index daa0b88157c6c..e82e7cd6f8730 100644 --- a/node_modules/libnpmversion/README.md +++ b/node_modules/libnpmversion/README.md @@ -25,6 +25,7 @@ npmVersion(arg, { signGitTag: false, // default false, gpg sign the git tag force: false, // push forward recklessly if any problems happen ignoreScripts: false, // do not run pre/post/version lifecycle scripts + scriptShell: '/bin/bash', // shell to run lifecycle scripts in message: 'v%s', // message for tag and commit, replace %s with the version }).then(newVersion => { console.error('version updated!', newVersion) @@ -149,6 +150,10 @@ Push forward recklessly if any problems happen. Default `false`. Do not run pre/post/version lifecycle scripts. Default `false`. +#### `scriptShell` String + +Path to the shell, which should execute the lifecycle scripts. Defaults to `/bin/sh` on unix, or `cmd.exe` on windows. + #### `message` String The message for the git commit and annotated git tag that are created. diff --git a/node_modules/libnpmversion/lib/index.js b/node_modules/libnpmversion/lib/index.js index c3f554834bf81..683941cdea4f3 100644 --- a/node_modules/libnpmversion/lib/index.js +++ b/node_modules/libnpmversion/lib/index.js @@ -13,6 +13,7 @@ module.exports = async (newversion, opts = {}) => { signGitTag = false, force = false, ignoreScripts = false, + scriptShell = undefined, preid = null, log = proclog, message = 'v%s', @@ -31,6 +32,7 @@ module.exports = async (newversion, opts = {}) => { signGitTag, force, ignoreScripts, + scriptShell, preid, pkg, log, diff --git a/node_modules/libnpmversion/package.json b/node_modules/libnpmversion/package.json index 0135c21e7232c..30d94c7a14699 100644 --- a/node_modules/libnpmversion/package.json +++ b/node_modules/libnpmversion/package.json @@ -1,6 +1,6 @@ { "name": "libnpmversion", - "version": "1.0.12", + "version": "1.1.0", "main": "lib/index.js", "files": [ "lib/*.js" diff --git a/package-lock.json b/package-lock.json index c77a7de98bad1..4b6a60b06b212 100644 --- a/package-lock.json +++ b/package-lock.json @@ -283,7 +283,7 @@ "libnpmpublish": "^4.0.0", "libnpmsearch": "^3.1.0", "libnpmteam": "^2.0.2", - "libnpmversion": "^1.0.12", + "libnpmversion": "^1.1.0", "make-fetch-happen": "^8.0.14", "minipass": "^3.1.3", "minipass-pipeline": "^1.2.4", @@ -4955,9 +4955,9 @@ } }, "node_modules/libnpmversion": { - "version": "1.0.12", - "resolved": "https://registry.npmjs.org/libnpmversion/-/libnpmversion-1.0.12.tgz", - "integrity": "sha512-Z5L2+JXUHC4xH9VkN/3BiVflnMag2bH1Ijy8ISKFw8fBQv9IXNSQgZbzwtfo4VBg0y+ieaKYbzpfbgjfUr31mw==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/libnpmversion/-/libnpmversion-1.1.0.tgz", + "integrity": "sha512-ktMHbbGpVVwmvSNQ+dG5fXgC2rB81i1hA94SaR5OCqPQ01Kuipshq6OLo8maD3xK+ulUCIfHxcAi/JYL8J9SWg==", "inBundle": true, "dependencies": { "@npmcli/git": "^2.0.6", @@ -14141,9 +14141,9 @@ } }, "libnpmversion": { - "version": "1.0.12", - "resolved": "https://registry.npmjs.org/libnpmversion/-/libnpmversion-1.0.12.tgz", - "integrity": "sha512-Z5L2+JXUHC4xH9VkN/3BiVflnMag2bH1Ijy8ISKFw8fBQv9IXNSQgZbzwtfo4VBg0y+ieaKYbzpfbgjfUr31mw==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/libnpmversion/-/libnpmversion-1.1.0.tgz", + "integrity": "sha512-ktMHbbGpVVwmvSNQ+dG5fXgC2rB81i1hA94SaR5OCqPQ01Kuipshq6OLo8maD3xK+ulUCIfHxcAi/JYL8J9SWg==", "requires": { "@npmcli/git": "^2.0.6", "@npmcli/run-script": "^1.8.3", diff --git a/package.json b/package.json index 90e8c4db5ab82..c270fb8872d30 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,7 @@ "libnpmpublish": "^4.0.0", "libnpmsearch": "^3.1.0", "libnpmteam": "^2.0.2", - "libnpmversion": "^1.0.12", + "libnpmversion": "^1.1.0", "make-fetch-happen": "^8.0.14", "minipass": "^3.1.3", "minipass-pipeline": "^1.2.4",