Skip to content

Commit

Permalink
feat: adding parallel execution via parallel loop argv (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
mateodelnorte authored Jun 13, 2019
1 parent 2a5c890 commit cc50a7d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 31 deletions.
4 changes: 3 additions & 1 deletion bin/meta-npm-link
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ loop(

console.log(`linking child projects`);

async.mapSeries(
const map = process.argv.indexOf('--parallel') > -1 ? async.map : async.mapSeries;

map(
dependencies,
(dependency, cb) => {
exec(
Expand Down
41 changes: 11 additions & 30 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cc50a7d

Please sign in to comment.