Comparing version 3.1.0 to 3.2.0
@@ -10,3 +10,3 @@ #!/usr/bin/env node | ||
const workspace_1 = require("./workspace"); | ||
yargs | ||
let yargsParser = yargs | ||
.wrap(yargs.terminalWidth() - 1) | ||
@@ -102,3 +102,13 @@ .updateStrings({ | ||
}); | ||
const argv = yargs.argv; | ||
function parsePositionally(yargs, cmd) { | ||
let newCmd = cmd.map((c, i) => (c.startsWith('-') ? c : c + ':' + i.toString())); | ||
let positional = yargs.parse(newCmd); | ||
if (!positional._.length) | ||
return yargs.parse(cmd); | ||
let position = Number(positional._[0].substr(positional._[0].lastIndexOf(':') + 1)); | ||
let result = yargs.parse(cmd.slice(0, position)); | ||
result._ = result._.concat(cmd.slice(position)); | ||
return result; | ||
} | ||
const argv = parsePositionally(yargsParser, process.argv.slice(2)); // yargs.argv | ||
const bin = argv.bin || 'yarn'; | ||
@@ -105,0 +115,0 @@ let mode; |
{ | ||
"name": "wsrun", | ||
"version": "3.1.0", | ||
"version": "3.2.0", | ||
"description": "executes commands on packages in parallel, but is aware of the dependencies between them", | ||
@@ -5,0 +5,0 @@ "main": "./build/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
79994
1044