From 09503bdf98ea098d1401b5938d18c868d43415db Mon Sep 17 00:00:00 2001 From: sanketshevkar Date: Thu, 16 Jan 2025 19:29:28 +0530 Subject: [PATCH] fix(aliasing): update coverage scollection script for globe upgarde Signed-off-by: sanketshevkar --- scripts/coverage.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/coverage.js b/scripts/coverage.js index b14ad4258..10f066024 100755 --- a/scripts/coverage.js +++ b/scripts/coverage.js @@ -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` }; });