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 09503bd commit 56e9c52
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 @@ -32,10 +32,10 @@ function copyFiles(files, destDir) {
}));
}

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

0 comments on commit 56e9c52

Please sign in to comment.