From 38e65abeddcf41e1635eb159a1ce50f164c05f8b Mon Sep 17 00:00:00 2001 From: Kiko Beats Date: Fri, 30 Jul 2021 20:16:35 +0200 Subject: [PATCH] ci: fix root path --- scripts/merge-reports | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/merge-reports b/scripts/merge-reports index f1b7c57..278e65d 100755 --- a/scripts/merge-reports +++ b/scripts/merge-reports @@ -9,7 +9,9 @@ const rimraf = require('rimraf') const makeDir = require('make-dir') const glob = require('glob') -process.chdir(__dirname) +const rooPath = path.resolve(__dirname, '..') + +process.chdir(rooPath) rimraf.sync('.nyc_output') makeDir.sync('.nyc_output') @@ -21,7 +23,7 @@ glob.sync('packages/*/.nyc_output').forEach(nycOutput => { [ 'merge', '.nyc_output', - path.join(__dirname, '.nyc_output', path.basename(cwd) + '.json') + path.join(rooPath, '.nyc_output', path.basename(cwd) + '.json') ], { encoding: 'utf8',