Skip to content

Commit

Permalink
fix(build): allow merge to work consistently on windows (#429)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeapage authored and bcoe committed Jun 24, 2019
1 parent 371adb1 commit 030d355
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions monorepo-merge-reports.js
Expand Up @@ -14,7 +14,7 @@ makeDir.sync('.nyc_output');
// Merge coverage data from each package so we can generate a complete report
glob.sync('packages/*/.nyc_output').forEach(nycOutput => {
const { status, stderr } = spawnSync(
'nyc',
path.join('node_modules', '.bin', 'nyc'),
[
'merge',
nycOutput,
Expand All @@ -23,7 +23,7 @@ glob.sync('packages/*/.nyc_output').forEach(nycOutput => {
path.basename(path.dirname(nycOutput)) + '.json'
)
],
{ encoding: 'utf8' }
{ encoding: 'utf8', shell: true }
);

if (status !== 0) {
Expand Down

0 comments on commit 030d355

Please sign in to comment.