We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 722c44f commit 6a4c661Copy full SHA for 6a4c661
7 files changed
packages/angular_devkit/build_angular/BUILD.bazel
@@ -174,6 +174,7 @@ ts_project(
174
":node_modules/source-map-loader",
175
":node_modules/source-map-support",
176
":node_modules/terser",
177
+ ":node_modules/tinyglobby",
178
":node_modules/tree-kill",
179
":node_modules/webpack",
180
":node_modules/webpack-dev-middleware",
@@ -198,7 +199,6 @@ ts_project(
198
199
"//:node_modules/@types/watchpack",
200
"//:node_modules/esbuild",
201
"//:node_modules/esbuild-wasm",
- "//:node_modules/fast-glob",
202
"//:node_modules/karma",
203
"//:node_modules/karma-source-map-support",
204
"//:node_modules/semver",
@@ -224,9 +224,9 @@ ts_project(
224
deps = [
225
":build_angular",
226
":build_angular_test_utils",
227
228
229
"//:node_modules/@types/node",
230
"//:node_modules/prettier",
231
"//:node_modules/typescript",
232
"//packages/angular_devkit/architect/testing",
packages/angular_devkit/build_angular/package.json
@@ -29,7 +29,6 @@
29
"copy-webpack-plugin": "13.0.1",
30
"css-loader": "7.1.2",
31
"esbuild-wasm": "0.25.9",
32
- "fast-glob": "3.3.3",
33
"http-proxy-middleware": "3.0.5",
34
"istanbul-lib-instrument": "6.0.3",
35
"jsonc-parser": "3.3.1",
@@ -53,6 +52,7 @@
53
52
"source-map-loader": "5.0.0",
54
"source-map-support": "0.5.21",
55
"terser": "5.44.0",
+ "tinyglobby": "0.2.15",
56
"tree-kill": "1.2.2",
57
"tslib": "2.8.1",
58
"webpack": "5.101.3",
packages/angular_devkit/build_angular/src/tools/webpack/utils/helpers.ts
@@ -7,9 +7,9 @@
7
*/
8
9
import type { ObjectPattern } from 'copy-webpack-plugin';
10
-import glob from 'fast-glob';
11
import { createHash } from 'node:crypto';
12
import * as path from 'node:path';
+import { globSync } from 'tinyglobby';
13
import type { Configuration, WebpackOptionsNormalized } from 'webpack';
14
import {
15
AssetPatternClass,
@@ -126,7 +126,7 @@ export function getInstrumentationExcludedPaths(
126
127
for (const excludeGlob of excludedPaths) {
128
const excludePath = excludeGlob[0] === '/' ? excludeGlob.slice(1) : excludeGlob;
129
- glob.sync(excludePath, { cwd: root }).forEach((p) => excluded.add(path.join(root, p)));
+ globSync(excludePath, { cwd: root }).forEach((p) => excluded.add(path.join(root, p)));
130
}
131
132
return excluded;
packages/angular_devkit/build_angular/src/utils/copy-assets.ts
@@ -6,9 +6,9 @@
6
* found in the LICENSE file at https://angular.dev/license
import fs from 'node:fs';
import path from 'node:path';
+import { glob } from 'tinyglobby';
export async function copyAssets(
entries: {
packages/angular_devkit/build_angular/src/utils/test-files.ts
@@ -6,7 +6,7 @@
-import fastGlob, { Options as GlobOptions } from 'fast-glob';
+import { GlobOptions, glob as globFn } from 'tinyglobby';
/**
* Finds all test files in the project.
@@ -21,7 +21,7 @@ export async function findTestFiles(
21
include: string[],
22
exclude: string[],
23
workspaceRoot: string,
24
- glob: typeof fastGlob = fastGlob,
+ glob: typeof globFn = globFn,
25
): Promise<Set<string>> {
26
const globOptions: GlobOptions = {
27
cwd: workspaceRoot,
packages/angular_devkit/build_angular/src/utils/test-files_spec.ts
// eslint-disable-next-line import/no-extraneous-dependencies
-import realGlob from 'fast-glob';
import { promises as fs } from 'node:fs';
+import { glob as realGlob } from 'tinyglobby';
import { findTestFiles } from './test-files';
describe('test-files', () => {
pnpm-lock.yaml
0 commit comments