libnpmversion
Advanced tools
Comparing version 1.0.0 to 1.0.2
@@ -13,3 +13,3 @@ const git = require('@npmcli/git') | ||
args.push('-m') | ||
return git.spawn(['commit', ...args, message.replace(/%s/g, version)], opts) | ||
return git.spawn([...args, message.replace(/%s/g, version)], opts) | ||
} |
@@ -107,2 +107,4 @@ // called with all the options already set to their defaults | ||
await runScript('postversion') | ||
return newV | ||
} |
{ | ||
"name": "libnpmversion", | ||
"version": "1.0.0", | ||
"version": "1.0.2", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "files": [ |
@@ -29,4 +29,4 @@ # libnpmversion | ||
message: 'v%s', // message for tag and commit, replace %s with the version | ||
}).then(pkg => { | ||
console.error('version updated!', pkg) | ||
}).then(newVersion => { | ||
console.error('version updated!', newVersion) | ||
}) | ||
@@ -104,5 +104,5 @@ ``` | ||
### `npmVersion(newversion, options = {}) -> Promise` | ||
### `npmVersion(newversion, options = {}) -> Promise<String>` | ||
Do the things. Returns a promise that resolves to the package manifest if | ||
Do the things. Returns a promise that resolves to the new version if | ||
all is well, or rejects if any errors are encountered. | ||
@@ -109,0 +109,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14313
247