build: convert build/test scripts to use fast-glob (#53397)

The repository currently has two globbing packages. To minimize the number of packages in
the framework repository, the uses of the `glob` package are being converted
to `fast-glob` which is used by the tooling repository.  The change is mostly mechanical
and in this change the build and test scripts are converted.

PR Close #53397
This commit is contained in:
Charles Lyding
2023-12-06 11:34:03 -05:00
committed by Alex Rickabaugh
parent 636b0d0cd0
commit f2245d1fd5
5 changed files with 5 additions and 6 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
const path = require('path');
const fs = require('fs');
const child_process = require('child_process');
const glob = require('glob');
const glob = require('fast-glob');
const chalk = require('chalk');
const diff = require('diff');
+1 -1
View File
@@ -11,7 +11,7 @@
import childProcess from 'child_process';
import url from 'url';
import path from 'path';
import glob from 'glob';
import glob from 'fast-glob';
import fs from 'fs';
const containingDir = path.dirname(url.fileURLToPath(import.meta.url));
@@ -8,10 +8,9 @@ ts_library(
deps = [
"@npm//@bazel/runfiles",
"@npm//@types/cldrjs",
"@npm//@types/glob",
"@npm//@types/node",
"@npm//cldr",
"@npm//cldrjs",
"@npm//glob",
"@npm//fast-glob",
],
)
@@ -9,7 +9,7 @@
import {runfiles} from '@bazel/runfiles';
import cldrjs, {type CldrStatic} from 'cldrjs';
import fs from 'fs';
import glob from 'glob';
import glob from 'fast-glob';
/**
* Globs that match CLDR JSON data files that should be fetched. We limit these intentionally
@@ -11,7 +11,7 @@
import multimatch from 'multimatch';
import esbuild from 'esbuild';
import fs from 'fs';
import glob from 'glob';
import glob from 'fast-glob';
import {dirname, join, isAbsolute, relative} from 'path';
import url from 'url';
import ts from 'typescript';