diff --git a/scripts/coverage.js b/scripts/coverage.js index c3caaba43..0a47297f1 100755 --- a/scripts/coverage.js +++ b/scripts/coverage.js @@ -35,7 +35,7 @@ function copyFiles(files, destDir) { const lcovs = glob.sync(globPattern).map((dir) => { const packageName = dir.split('/').pop(); return { - source: path.join(dir, 'coverage/coverage-final.json'), + source: path.join(dir, 'coverage/coverage-final.json').split(path.sep).join('/'), destination: `${packageName}.json` }; }); @@ -45,4 +45,4 @@ copyFiles(lcovs, 'coverage').then(() => { console.log("done"); }).catch(err => { console.log(err); -}); \ No newline at end of file +});