Skip to content

Commit d270258

Browse files
committed
build: update dependency glob to v8
1 parent c636cc8 commit d270258

File tree

4 files changed

+8
-13
lines changed

4 files changed

+8
-13
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
"express": "4.17.3",
146146
"fast-json-stable-stringify": "2.1.0",
147147
"font-awesome": "^4.7.0",
148-
"glob": "7.2.0",
148+
"glob": "8.0.1",
149149
"http-proxy": "^1.18.1",
150150
"https-proxy-agent": "5.0.0",
151151
"husky": "7.0.4",

packages/angular_devkit/build_angular/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"critters": "0.0.16",
3131
"css-loader": "6.7.1",
3232
"esbuild-wasm": "0.14.36",
33-
"glob": "7.2.0",
33+
"glob": "8.0.1",
3434
"https-proxy-agent": "5.0.0",
3535
"inquirer": "8.2.2",
3636
"jsonc-parser": "3.0.0",

tests/legacy-cli/e2e/utils/assets.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,15 @@ export function copyAssets(assetName: string, to?: string) {
2525

2626
return Promise.resolve()
2727
.then(() => {
28-
const allFiles = glob.sync(join(root, '**/*'), { dot: true, nodir: true });
28+
const allFiles = glob.sync('**/*', { dot: true, nodir: true, cwd: root });
2929

3030
return allFiles.reduce((promise, filePath) => {
31-
const relPath = relative(root, filePath);
3231
const toPath =
3332
to !== undefined
34-
? resolve(getGlobalVariable('tmp-root'), 'test-project', to, relPath)
35-
: join(tempRoot, relPath);
33+
? resolve(getGlobalVariable('tmp-root'), 'test-project', to, filePath)
34+
: join(tempRoot, filePath);
3635

37-
return promise.then(() => copyFile(filePath, toPath));
36+
return promise.then(() => copyFile(join(root, filePath), toPath));
3837
}, Promise.resolve());
3938
})
4039
.then(() => tempRoot);

tests/legacy-cli/e2e_runner.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,9 @@ const testGlob = argv.glob || 'tests/**/*.ts';
7474
let currentFileName = null;
7575

7676
const e2eRoot = path.join(__dirname, 'e2e');
77-
const allSetups = glob
78-
.sync(path.join(e2eRoot, 'setup/**/*.ts'), { nodir: true })
79-
.map((name) => path.relative(e2eRoot, name))
80-
.sort();
77+
const allSetups = glob.sync('setup/**/*.ts', { nodir: true, cwd: e2eRoot }).sort();
8178
const allTests = glob
82-
.sync(path.join(e2eRoot, testGlob), { nodir: true, ignore: argv.ignore })
83-
.map((name) => path.relative(e2eRoot, name))
79+
.sync(testGlob, { nodir: true, cwd: e2eRoot, ignore: argv.ignore })
8480
// Replace windows slashes.
8581
.map((name) => name.replace(/\\/g, '/'))
8682
.sort()

0 commit comments

Comments
 (0)