release-it
Advanced tools
Comparing version 0.0.13 to 0.0.14
@@ -16,4 +16,5 @@ { | ||
"distFiles": ["**/*"], | ||
"private": false, | ||
"publish": false, | ||
"publishPath": "." | ||
} |
@@ -37,3 +37,4 @@ var path = require('path'), | ||
version: pkg.version, | ||
name: pkg.name | ||
name: pkg.name, | ||
private: pkg.private | ||
} | ||
@@ -40,0 +41,0 @@ |
@@ -6,2 +6,7 @@ var util = require('util'), | ||
function shouldPublish(distRepo, subject) { | ||
var hasDistRepo = !!distRepo; | ||
return (subject === 'src' && !hasDistRepo) || (subject === 'dist' && hasDistRepo); | ||
} | ||
module.exports = function(subject, tasks, options) { | ||
@@ -54,4 +59,4 @@ | ||
default: false, | ||
when: function push() { | ||
return (subject === 'src' && !options.distRepo) || (subject === 'dist' && !!options.distRepo); | ||
when: function() { | ||
return !options.private && shouldPublish(options.distRepo, subject); | ||
} | ||
@@ -58,0 +63,0 @@ }, |
{ | ||
"name": "release-it", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"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": [ |
@@ -70,2 +70,3 @@ # Release It! | ||
"distFiles": ["**/*"], | ||
"private": false, | ||
"publish": false, | ||
@@ -110,2 +111,4 @@ "publishPath": "." | ||
If present, your `"private": true` setting in package.json will be respected and you will not be bothered with the question to publish to npm. | ||
## Usage examples | ||
@@ -112,0 +115,0 @@ |
1863892
697
161