Socket
Socket
Sign inDemoInstall

release-it

Package Overview
Dependencies
Maintainers
1
Versions
400
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

release-it - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

4

lib/shell.js

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc