Skip to content

Commit 058bf6f

Browse files
authored
Fix glob package vulnerability (#1138)
Fix glob package vulnerability by updating packages from which it is referenced (shelljs and mocha).
1 parent a8cfa11 commit 058bf6f

File tree

9 files changed

+1919
-854
lines changed

9 files changed

+1919
-854
lines changed

node/make.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ target.build = function() {
3030
cp(rp('ThirdPartyNotice.txt'), buildPath);
3131
cp('-Rf', rp('Strings'), buildPath);
3232
// just a bootstrap file to avoid /// in final js and .d.ts file
33-
rm(path.join(buildPath, 'index.*'));
33+
// Use force flag so build doesn't fail if files don't exist
34+
rm('-f', path.join(buildPath, 'index.*'));
3435
}
3536

3637
target.test = async function() {
@@ -44,7 +45,7 @@ target.test = async function() {
4445
cp('-Rf', rp('test/fakeTasks'), testPath);
4546
process.env['TASKLIB_INPROC_UNITS'] = '1'; // export task-lib internals for internal unit testing
4647
set('+e'); // Don't throw an exception when tests fail
47-
run('mocha ' + testPath);
48+
run('npx mocha ' + testPath);
4849
}
4950

5051
target.loc = function() {

0 commit comments

Comments
 (0)