Socket
Socket
Sign inDemoInstall

release-it

Package Overview
Dependencies
10
Maintainers
1
Versions
393
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.15 to 0.0.16

.idea/.name

8

lib/git.js

@@ -6,3 +6,4 @@ var util = require('util'),

sequence = require('when/sequence'),
log = require('./log');
log = require('./log'),
tracker = require('./tracker');

@@ -42,2 +43,3 @@ function isGitRepo() {

function status() {
tracker._track('git', 'status');
return run(

@@ -53,2 +55,3 @@ 'git',

function commit(path, message, version) {
tracker._track('git', 'commit');
return run(

@@ -64,2 +67,3 @@ 'git',

function tag(version, tag, annotation) {
tracker._track('git', 'tag');
return run(

@@ -78,2 +82,3 @@ 'git',

function push() {
tracker._track('git', 'push');
return run('git', 'push');

@@ -83,2 +88,3 @@ }

function pushTags() {
tracker._track('git', 'push-tags');
return run(

@@ -85,0 +91,0 @@ 'git',

4

lib/options.js

@@ -7,4 +7,4 @@ var optimist = require('optimist'),

optimist.usage('Release It! v' + version +'\n\n' +
'Usage: $0 <increment> [options]\n\n' +
'Use e.g. "$0 minor" directly as shorthand for "$0 --increment=minor".');
'Usage: release-it <increment> [options]\n\n' +
'Use e.g. "release-it minor" directly as shorthand for "release-it --increment=minor".');

@@ -11,0 +11,0 @@ optimist.alias('c', 'config');

@@ -5,4 +5,4 @@ var cliOptions = require('./options'),

tasks = require('./tasks'),
when = require('when'),
sequence = require('when/sequence');
sequence = require('when/sequence'),
tracker = require('./tracker');

@@ -16,7 +16,10 @@ function cli(options) {

return when.promise(function(resolve, reject) {
var opts = config.mergeOptions(options);
return tracker._askPermission(opts).then(function(resolve, reject) {
if (options.version) {
cliOptions.version();
tracker._track('version');
resolve();

@@ -27,2 +30,3 @@

cliOptions.help();
tracker._track('help');
resolve();

@@ -32,4 +36,2 @@

var opts = config.mergeOptions(options);
if(opts.force) {

@@ -45,3 +47,3 @@ log.warn('Using --force, I sure hope you know what you are doing.');

sequence([tasks.releaseSrc, tasks.releaseDist]).then(resolve, reject);
return sequence([tasks.releaseSrc, tasks.releaseDist]).then(resolve, reject);

@@ -48,0 +50,0 @@ }

@@ -9,3 +9,4 @@ var path = require('path'),

fn = require('when/node/function'),
noop = when.resolve(true);
noop = when.resolve(true),
tracker = require('./tracker');

@@ -71,2 +72,3 @@ function run(command, commandArgs) {

function build(command) {
tracker._track('npm', 'run-script');
return command ? run(command) : noop.then(function() {

@@ -78,2 +80,3 @@ log.verbose('No build command was provided.');

function npmPublish(path) {
tracker._track('npm', 'publish');
var options = config.getOptions();

@@ -80,0 +83,0 @@ return run('npm', 'publish', options.publishPath || path || '.');

{
"name": "release-it",
"version": "0.0.15",
"version": "0.0.16",
"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.",
"keywords": [
"release",
"tool",
"shell",
"script",
"publish",
"repository",
"build",
"commit",
"distribution",
"git",
"interactive",
"npm",
"interactive",
"git",
"version",
"commit",
"publish",
"push",
"release",
"repository",
"script",
"shell",
"tag",
"push"
"tool",
"version"
],

@@ -29,17 +29,18 @@ "repository": {

"author": {
"name": "Lars Kappert",
"email": "lars@webpro.nl"
"email": "lars@webpro.nl",
"name": "Lars Kappert"
},
"license": "MIT",
"dependencies": {
"chalk": "^0.4.0",
"glob": "^4.0.2",
"graceful-fs": "^3.0.2",
"inquirer": "^0.5.1",
"insight": "^0.6.0",
"mkdirp": "^0.5.0",
"optimist": "^0.6.1",
"semver": "^2.3.1",
"shelljs": "^0.3.0",
"inquirer": "^0.5.1",
"when": "^3.2.3",
"chalk": "^0.4.0",
"mkdirp": "^0.5.0",
"glob": "^4.0.2",
"graceful-fs": "^3.0.2"
"when": "^3.2.3"
}
}

@@ -100,3 +100,3 @@ # Release It!

1. Both the commit and tag are pushed.
1. Without a configured `distRepo`, the package is published to npm.
1. Without a configured `distRepo`, the package can be published directly to npm.

@@ -109,3 +109,3 @@ Additionally, if a distribution repository is configured:

1. Steps 1-4 above are executed for the distribution repository.
1. The package is published to npm.
1. The distribution package can be published to npm.

@@ -112,0 +112,0 @@ 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.

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