Skip to content

Commit cf35bbc

Browse files
authored
Revert back to glob 7 due to test failures (and update .github/actions dependencies) (#12365)
* Revert back to glob 7 due to test failures. * Fix npm audit issues with .github/actions
1 parent a096f06 commit cf35bbc

File tree

9 files changed

+189
-972
lines changed

9 files changed

+189
-972
lines changed

.github/actions/package-lock.json

Lines changed: 21 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Extension/.scripts/common.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ import { Command, CommandFunction } from '../src/Utility/Process/program';
88
import { ok } from 'assert';
99
import { CommentJSONValue, parse, stringify } from 'comment-json';
1010
import { mkdir as md, readFile, rm, writeFile } from 'fs/promises';
11+
import { IOptions, glob as globSync } from 'glob';
1112
import { dirname, resolve } from 'path';
1213
import { chdir, cwd, env } from 'process';
1314
import { setImmediate } from 'timers/promises';
15+
import { promisify } from 'util';
1416
import { filepath } from '../src/Utility/Filesystem/filepath';
1517
import { is } from '../src/Utility/System/guards';
1618
import { verbose } from '../src/Utility/Text/streams';
@@ -85,6 +87,8 @@ export async function mkdir(filePath: string) {
8587
return fullPath;
8688
}
8789

90+
export const glob: (pattern: string, options?: IOptions) => Promise<string[]> = promisify(globSync);
91+
8892
export async function write(filePath: string, data: Buffer | string) {
8993
await mkdir(dirname(filePath));
9094

Extension/.scripts/copyWalkthruMedia.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44
* ------------------------------------------------------------------------------------------ */
55

66
import { watch as watchFiles } from 'fs/promises';
7-
import { glob } from 'glob';
87
import { filepath } from '../src/Utility/Filesystem/filepath';
98
import { verbose } from '../src/Utility/Text/streams';
10-
import { $root, mkdir, updateFiles } from './common';
9+
import { $root, glob, mkdir, updateFiles } from './common';
1110

1211
export async function main() {
1312
verbose(`Copying walkthrough media to extension/dist folder`);

0 commit comments

Comments
 (0)