Socket
Socket
Sign inDemoInstall

release-it

Package Overview
Dependencies
9
Maintainers
1
Versions
393
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.13 to 0.0.14

1

conf/release.json

@@ -16,4 +16,5 @@ {

"distFiles": ["**/*"],
"private": false,
"publish": false,
"publishPath": "."
}

3

lib/config.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc