@aofl/cli-lib
Advanced tools
Comparing version 3.0.0 to 3.2.2-alpha.3
@@ -174,4 +174,33 @@ const spawn = require('cross-spawn'); | ||
} | ||
/** | ||
* | ||
* @static | ||
* @param {string} [command=''] | ||
* @param {Boolean} [silent=false] | ||
* @param {string[]} [args=[]] | ||
* @param {object} [options={}] | ||
* @return {Promise} | ||
* @memberof Npm | ||
*/ | ||
static run(command, silent = false, args = [], options = {}) { | ||
const params = ['run']; | ||
if(typeof command === 'string') { | ||
params.push(command); | ||
} | ||
if (silent) { | ||
params.push('--silent'); | ||
} | ||
if (args.length) { | ||
params.push('--'); | ||
params.push(...args); | ||
} | ||
return Npm.__run(params, options); | ||
} | ||
} | ||
module.exports.Npm = Npm; |
{ | ||
"name": "@aofl/cli-lib", | ||
"version": "3.0.0", | ||
"version": "3.2.2-alpha.3", | ||
"description": "Shared library for cli and various webpack plugins.", | ||
@@ -38,4 +38,3 @@ "main": "index.js", | ||
"uuid": "^3.3.3" | ||
}, | ||
"gitHead": "bd783440a25a2c579fbb506b92d90bf4fb7e0289" | ||
} | ||
} |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
43117
1521
2