Skip to content

Commit 2511656

Browse files
committed
chore: fix CodeQL issue
1 parent 1fd29b8 commit 2511656

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/codecov-upload-flags.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ if (typeof commitSha !== 'string') {
2121
}
2222

2323
const readPkg = (dir) => JSON.parse(readFileSync(path.join(dir, 'package.json'), 'utf8'));
24-
const execCmd = (cmd, opts = {}) => execSync(cmd, {cwd: ROOT_DIR, encoding: 'utf-8', stdio: 'inherit', ...opts});
24+
const execCmd = (cmd, opts = {}) => execSync(cmd, {cwd: process.argv[2], encoding: 'utf-8', stdio: 'inherit', ...opts});
2525

2626
const pkgInfo = readPkg(ROOT_DIR);
2727
const pkgFiles = pkgInfo.workspaces.map((exp) => globSync(path.join(exp, 'package.json')));

0 commit comments

Comments
 (0)