release-it
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -101,3 +101,5 @@ var path = require('path'), | ||
}).then(function(data) { | ||
return fn.call(fs.writeFile, file, JSON.stringify(data, null, 2) + '\n'); | ||
if(data){ | ||
return fn.call(fs.writeFile, file, JSON.stringify(data, null, 2) + '\n'); | ||
} | ||
}).catch(function(err) { | ||
@@ -104,0 +106,0 @@ log.warn('There was a problem bumping the version in ' + file); |
@@ -95,3 +95,2 @@ var _ = require('lodash'), | ||
build: shell.build.bind(null, options.buildCommand), | ||
bump: shell.bump.bind(null, options.pkgFiles, options.version), | ||
status: git.status, | ||
@@ -112,2 +111,3 @@ stageAll: git.stageAll, | ||
return _.extend({}, getGenericTasks(options), { | ||
bump: shell.bump.bind(null, options.pkgFiles, options.version), | ||
stage: git.stage.bind(null, options.pkgFiles), | ||
@@ -121,5 +121,7 @@ release: options.githubRelease ? git.release.bind(null, options) : noop, | ||
var isPublish = !(options['non-interactive'] && !options.publish) && !!options.distRepo; | ||
var isPublish = !(options['non-interactive'] && !options.publish) && !!options.distRepo, | ||
distPkgFiles = options.distPkgFiles || options.pkgFiles; | ||
return _.extend({}, getGenericTasks(options), { | ||
bump: shell.bump.bind(null, distPkgFiles, options.version), | ||
clone: git.clone.bind(null, options.distRepo, options.distStageDir), | ||
@@ -126,0 +128,0 @@ copy: shell.copy.bind(null, options.distFiles, {cwd: options.distBase}, options.distStageDir), |
{ | ||
"name": "release-it", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Interactive release tool for Git repositories. Increment version, commit, tag, push, build, publish to npm. Supports to build and release to a distribution/component repository.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -67,2 +67,3 @@ # Release It! | ||
"distRepo": false, | ||
"distPkgFiles": undefined, /* Defaults to pkgFiles */ | ||
"distStageDir": ".stage", | ||
@@ -69,0 +70,0 @@ "distBase": "dist", |
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
34920
835
185