Skip to content

Commit

Permalink
fix: upgrade dependencies. add standard-version for release management (
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed Jul 8, 2016
1 parent ece888d commit d77ffb8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'

var assign = require('lodash.assign')
var async = require('async')
var eachLimit = require('async').eachLimit
var spawn = require('cross-spawn')

module.exports = function (packages, _options, cb) {
Expand All @@ -16,8 +16,8 @@ module.exports = function (packages, _options, cb) {
stdio: 'inherit'
}, _options)

async.eachLimit(packages, 1, function (arg, next) {
var pkg = arg.split('@')[0]
eachLimit(packages, 1, function (arg, next) {
var pkg = arg.substr(0, arg.indexOf('@')) || arg

This comment has been minimized.

Copy link
@jdalton

jdalton Jul 8, 2016

Contributor

Was this revert bit intentional?

pkg = arg.split('@')[0]

is simpler :P

This comment has been minimized.

Copy link
@bcoe

bcoe Jul 8, 2016

Author Owner

this was an accident.

try {
// TODO: Either skip this part if a version has been provided or check the package json version
require.resolve(pkg)
Expand Down
14 changes: 8 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"scripts": {
"pretest": "standard",
"test": "nyc ./node_modules/.bin/_mocha --timeout=30000",
"coverage": "nyc report --reporter=text-lcov | coveralls"
"coverage": "nyc report --reporter=text-lcov | coveralls",
"release": "standard-version"
},
"repository": {
"type": "git",
Expand All @@ -26,17 +27,18 @@
},
"homepage": "https://github.com/bcoe/optional-dev-dependency#readme",
"dependencies": {
"async": "^1.4.2",
"async": "^2.0.0-rc.6",
"cross-spawn": "^4.0.0",
"lodash.assign": "^3.2.0",
"yargs": "^3.24.0"
"lodash.assign": "^4.0.9",
"yargs": "^4.7.1"
},
"devDependencies": {
"chai": "^3.2.0",
"coveralls": "^2.11.4",
"mocha": "^2.3.2",
"nyc": "^3.2.2",
"nyc": "^7.0.0-alpha.5",
"rimraf": "^2.4.3",
"standard": "^5.2.2"
"standard": "^7.1.2",
"standard-version": "^2.3.1"
}
}

0 comments on commit d77ffb8

Please sign in to comment.