Skip to content

Commit

Permalink
fix(aliasing): update coverage scollection script for globe upgarde
Browse files Browse the repository at this point in the history
Signed-off-by: sanketshevkar <[email protected]>
  • Loading branch information
sanketshevkar committed Jan 16, 2025
1 parent 85c8174 commit 09503bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/coverage.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ function copyFiles(files, destDir) {
fs.mkdirSync('coverage');
}
return Promise.all(files.map(f => {
return copyFilePromise(f.source, path.join(destDir, f.destination).split(path.sep).join('/'));
return copyFilePromise(f.source, path.join(destDir, f.destination));
}));
}

const lcovs = glob.sync(globPattern).map((dir) => {
const lcovs = glob.sync(globPattern.split(path.sep).join('/')).map((dir) => {
const packageName = dir.split('/').pop();
return {
source: path.join(dir, 'coverage/coverage-final.json').split(path.sep).join('/'),
source: path.join(dir, 'coverage/coverage-final.json'),
destination: `${packageName}.json`
};
});
Expand Down

0 comments on commit 09503bd

Please sign in to comment.