mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
build: Update Glob to fast-glob to remove Inflight due to memory leak (#50632)
Update Glob to fast-glob to remove the dependence of Inflight that contains a memory leak Signed-off-by: Kevin Gay <5970002+GayKevin@users.noreply.github.com> PR Close #50632
This commit is contained in:
parent
7166ed17a2
commit
d5a8ff39b9
11 changed files with 16 additions and 16 deletions
|
|
@ -171,6 +171,7 @@
|
|||
"cldrjs": "0.5.5",
|
||||
"conventional-changelog": "^3.1.24",
|
||||
"firebase-tools": "^12.0.0",
|
||||
"fast-glob": "3.2.12",
|
||||
"glob": "8.1.0",
|
||||
"gulp": "^4.0.2",
|
||||
"gulp-conventional-changelog": "^3.0.0",
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
],
|
||||
"dependencies": {
|
||||
"@babel/core": "7.21.8",
|
||||
"glob": "8.1.0",
|
||||
"fast-glob": "3.2.12",
|
||||
"yargs": "^17.2.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
|
|
|||
|
|
@ -16,10 +16,9 @@ ts_library(
|
|||
"@npm//@babel/core",
|
||||
"@npm//@types/babel__core",
|
||||
"@npm//@types/babel__traverse",
|
||||
"@npm//@types/glob",
|
||||
"@npm//@types/node",
|
||||
"@npm//@types/yargs",
|
||||
"@npm//glob",
|
||||
"@npm//fast-glob",
|
||||
],
|
||||
)
|
||||
|
||||
|
|
@ -43,7 +42,7 @@ esbuild(
|
|||
"@angular/compiler-cli/private/localize",
|
||||
"@babel/core",
|
||||
"yargs",
|
||||
"glob",
|
||||
"fast-glob",
|
||||
],
|
||||
format = "esm",
|
||||
platform = "node",
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
*/
|
||||
|
||||
import {ConsoleLogger, LogLevel, NodeJSFileSystem, setFileSystem} from '@angular/compiler-cli/private/localize';
|
||||
import glob from 'glob';
|
||||
import glob from 'fast-glob';
|
||||
import yargs from 'yargs';
|
||||
|
||||
import {DiagnosticHandlingStrategy} from '../diagnostics';
|
||||
|
|
@ -94,7 +94,7 @@ const fileSystem = new NodeJSFileSystem();
|
|||
setFileSystem(fileSystem);
|
||||
|
||||
const rootPath = options.r;
|
||||
const sourceFilePaths = glob.sync(options.s, {cwd: rootPath, nodir: true});
|
||||
const sourceFilePaths = glob.sync(options.s, {cwd: rootPath});
|
||||
const logLevel = options.loglevel as (keyof typeof LogLevel) | undefined;
|
||||
const logger = new ConsoleLogger(logLevel ? LogLevel[logLevel] : LogLevel.warn);
|
||||
const duplicateMessageHandling = options.d as DiagnosticHandlingStrategy;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
*/
|
||||
|
||||
import {ConsoleLogger, LogLevel, NodeJSFileSystem, setFileSystem} from '@angular/compiler-cli/private/localize';
|
||||
import glob from 'glob';
|
||||
import glob from 'fast-glob';
|
||||
import yargs from 'yargs';
|
||||
import {migrateFiles} from './index';
|
||||
|
||||
|
|
@ -44,7 +44,7 @@ const fs = new NodeJSFileSystem();
|
|||
setFileSystem(fs);
|
||||
|
||||
const rootPath = options.r;
|
||||
const translationFilePaths = glob.sync(options.f, {cwd: rootPath, nodir: true});
|
||||
const translationFilePaths = glob.sync(options.f, {cwd: rootPath, onlyFiles: true});
|
||||
const logger = new ConsoleLogger(LogLevel.warn);
|
||||
|
||||
migrateFiles({rootPath, translationFilePaths, mappingFilePath: options.m, logger});
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
import {NodeJSFileSystem, setFileSystem} from '@angular/compiler-cli/private/localize';
|
||||
import glob from 'glob';
|
||||
import glob from 'fast-glob';
|
||||
import yargs from 'yargs';
|
||||
|
||||
import {DiagnosticHandlingStrategy, Diagnostics} from '../diagnostics';
|
||||
|
|
@ -94,7 +94,7 @@ const fs = new NodeJSFileSystem();
|
|||
setFileSystem(fs);
|
||||
|
||||
const sourceRootPath = options.r;
|
||||
const sourceFilePaths = glob.sync(options.s, {cwd: sourceRootPath, nodir: true});
|
||||
const sourceFilePaths = glob.sync(options.s, {cwd: sourceRootPath, onlyFiles: true});
|
||||
const translationFilePaths: (string|string[])[] = convertArraysFromArgs(options.t);
|
||||
const outputPathFn = getOutputPathFn(fs, fs.resolve(options.o));
|
||||
const diagnostics = new Diagnostics();
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ ts_library(
|
|||
"@npm//@babel/template",
|
||||
"@npm//@types/babel__generator",
|
||||
"@npm//@types/babel__template",
|
||||
"@npm//@types/glob",
|
||||
"@npm//fast-glob",
|
||||
],
|
||||
)
|
||||
|
||||
|
|
@ -31,6 +31,6 @@ jasmine_node_test(
|
|||
bootstrap = ["//tools/testing:node_no_angular"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"@npm//glob",
|
||||
"@npm//fast-glob",
|
||||
],
|
||||
)
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ jasmine_node_test(
|
|||
],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"@npm//glob",
|
||||
"@npm//fast-glob",
|
||||
"@npm//yargs",
|
||||
],
|
||||
)
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ jasmine_node_test(
|
|||
],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"@npm//glob",
|
||||
"@npm//fast-glob",
|
||||
"@npm//yargs",
|
||||
],
|
||||
)
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ jasmine_node_test(
|
|||
],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"@npm//glob",
|
||||
"@npm//fast-glob",
|
||||
"@npm//yargs",
|
||||
],
|
||||
)
|
||||
|
|
|
|||
|
|
@ -8014,7 +8014,7 @@ fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3:
|
|||
resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525"
|
||||
integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==
|
||||
|
||||
fast-glob@^3.2.11, fast-glob@^3.2.9:
|
||||
fast-glob@3.2.12, fast-glob@^3.2.11, fast-glob@^3.2.9:
|
||||
version "3.2.12"
|
||||
resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.12.tgz#7f39ec99c2e6ab030337142da9e0c18f37afae80"
|
||||
integrity sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==
|
||||
|
|
|
|||
Loading…
Reference in a new issue