Skip to content

Commit

Permalink
Add concurrency=“1” flag to Lerna in AppVeyor
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenscerri committed Mar 26, 2017
1 parent 3c1211f commit 19cda22
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ install:
# TODO: Remove after https://github.com/appveyor/ci/issues/1426 is fixed
- set PATH=C:\Program Files\Git\mingw64\bin;%PATH%
- ps: Install-Product node $env:nodejs_version $env:platform
- cmd: node tasks/change-lerna-concurrency.js

build: off

Expand Down
15 changes: 15 additions & 0 deletions tasks/change-lerna-concurrency.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env node
'use strict';

// Change Lerna concurrency to 1 in lerna.json

var fs = require('fs');
var path = require('path');
var lernaPath = path.resolve(__dirname, '..', 'lerna.json');

var lerna = JSON.parse(fs.readFileSync(lernaPath, 'utf8'));

lerna.concurrency = '1';

fs.renameSync(lernaPath, lernaPath + '.old');
fs.writeFileSync(lernaPath, JSON.stringify(lerna));

0 comments on commit 19cda22

Please sign in to comment.