version-bump-prompt
Advanced tools
Comparing version 1.2.3 to 1.2.4
@@ -37,2 +37,3 @@ #!/usr/bin/env node | ||
var manifests = api.manifests(); | ||
var bumpType = 'patch'; | ||
var i = 0; | ||
@@ -52,3 +53,3 @@ | ||
message: 'How would you like to bump it?', | ||
default: 'patch', | ||
default: bumpType, | ||
choices: [ | ||
@@ -65,3 +66,4 @@ {value: 'major', name: 'major (' + version.nextMajor + ')'}, | ||
function(answer) { | ||
api.bump(manifest, answer.bump, program.preid); | ||
bumpType = answer.bump; | ||
api.bump(manifest, bumpType, program.preid); | ||
bumpNextManifest(); | ||
@@ -68,0 +70,0 @@ } |
'use strict'; | ||
var semver = require('semver'), | ||
exec = require('child-process-promise').exec, | ||
cwd = process.cwd(), | ||
fs = require('fs'), | ||
path = require('path'), | ||
indent = require('detect-indent'), | ||
var semver = require('semver'), | ||
exec = require('child-process-promise').exec, | ||
cwd = process.cwd(), | ||
fs = require('fs'), | ||
path = require('path'), | ||
indent = require('detect-indent'), | ||
logSymbols = require('log-symbols'), | ||
version; | ||
@@ -69,3 +70,3 @@ | ||
console.log('Updated %s to %s', manifest, current.version); | ||
console.log('%s Updated %s to %s', logSymbols.success, manifest, current.version); | ||
}; | ||
@@ -72,0 +73,0 @@ |
{ | ||
"name": "version-bump-prompt", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"description": "Automatically (or with prompts) bump your version number, commit, tag, and push", | ||
@@ -38,7 +38,8 @@ "keywords": [ | ||
"dependencies": { | ||
"child-process-promise": "^1.0.2", | ||
"child-process-promise": "^1.1.0", | ||
"commander": "^2.8.1", | ||
"detect-indent": "^3.0.1", | ||
"inquirer": "^0.8.3", | ||
"semver": "^4.3.4" | ||
"inquirer": "^0.8.5", | ||
"log-symbols": "^1.0.2", | ||
"semver": "^4.3.5" | ||
}, | ||
@@ -49,7 +50,7 @@ "devDependencies": { | ||
"jshint": "^2.7.0", | ||
"lodash": "^3.8.0", | ||
"mocha": "^2.2.4", | ||
"lodash": "^3.9.3", | ||
"mocha": "^2.2.5", | ||
"npm-check-updates": "^1.5.1", | ||
"version-bump-prompt": "^1.2.2" | ||
"version-bump-prompt": "^1.2.3" | ||
} | ||
} |
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
9396
165
6
+ Addedlog-symbols@^1.0.2
+ Addedlog-symbols@1.0.2(transitive)
Updatedchild-process-promise@^1.1.0
Updatedinquirer@^0.8.5
Updatedsemver@^4.3.5