Skip to content

Commit 24e30be

Browse files
committed
Remove direct glob devDependency and replace with fs.readdirSync
1 parent ded9932 commit 24e30be

4 files changed

Lines changed: 33 additions & 45 deletions

File tree

‎gulpfile.js‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const { series } = require('gulp');
22
const execFile = require('child_process').execFile;
3-
const glob = require('glob');
3+
const fs = require('fs');
44

55
function exec(command, cb) {
66
execFile('sh', ['-c', command], cb);
@@ -215,8 +215,13 @@ function commonjs_out(cb) {
215215
' > commonjs_out/' + file + '&& ';
216216
}
217217

218-
glob.sync('*_test.js').forEach(addTestFile);
219-
glob.sync('binary/*_test.js').forEach(addTestFile);
218+
fs.readdirSync('.')
219+
.filter((file) => file.endsWith('_test.js'))
220+
.forEach(addTestFile);
221+
fs.readdirSync('binary')
222+
.filter((file) => file.endsWith('_test.js'))
223+
.map((file) => `binary/${file}`)
224+
.forEach(addTestFile);
220225

221226
exec(
222227
cmd + 'cp commonjs/jasmine.json commonjs_out/jasmine.json && ' +

‎package-lock.json‎

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"README.md"
1414
],
1515
"devDependencies": {
16-
"glob": "~7.1.4",
1716
"google-artifactregistry-auth": "^3.5.0",
1817
"google-closure-compiler": "20230802.0.0",
1918
"google-closure-deps": "20230802.0.0",

‎yarn.lock‎

Lines changed: 25 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ bl@^5.0.0:
120120

121121
brace-expansion@^1.1.7:
122122
version "1.1.21"
123-
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.21.tgz#edf4fab5c64d051aea5a8def49aba1c7522279f3"
123+
resolved "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.21.tgz"
124124
integrity sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==
125125
dependencies:
126126
balanced-match "^1.0.0"
@@ -146,7 +146,7 @@ buffer@^6.0.3:
146146
base64-js "^1.3.1"
147147
ieee754 "^1.2.1"
148148

149-
chalk@4.x, chalk@^4.1.2:
149+
chalk@^4.1.2, chalk@4.x:
150150
version "4.1.2"
151151
resolved "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz"
152152
integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==
@@ -266,7 +266,7 @@ each-props@^3.0.0:
266266
is-plain-object "^5.0.0"
267267
object.defaults "^1.1.0"
268268

269-
ecdsa-sig-formatter@1.0.11, ecdsa-sig-formatter@^1.0.11:
269+
ecdsa-sig-formatter@^1.0.11, ecdsa-sig-formatter@1.0.11:
270270
version "1.0.11"
271271
resolved "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz"
272272
integrity sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==
@@ -384,11 +384,6 @@ fs.realpath@^1.0.0:
384384
resolved "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz"
385385
integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==
386386

387-
fsevents@~2.3.2:
388-
version "2.3.3"
389-
resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6"
390-
integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==
391-
392387
function-bind@^1.1.2:
393388
version "1.1.2"
394389
resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz"
@@ -455,7 +450,7 @@ glob-watcher@^6.0.0:
455450
async-done "^2.0.0"
456451
chokidar "^3.5.3"
457452

458-
glob@^7.1.4, glob@~7.1.4:
453+
glob@^7.1.4:
459454
version "7.1.7"
460455
resolved "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz"
461456
integrity sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==
@@ -525,16 +520,6 @@ google-closure-compiler-linux@^20230802.0.0:
525520
resolved "https://registry.npmjs.org/google-closure-compiler-linux/-/google-closure-compiler-linux-20230802.0.0.tgz"
526521
integrity sha512-F13U4iSXiWeGtHOFS25LVem1s6zI+pJvXVPVR7zSib5ppoUJ0JXnABJQezUR3FnpxmnkALG4oIGW0syH9zPLZA==
527522

528-
google-closure-compiler-osx@^20230802.0.0:
529-
version "20230802.0.0"
530-
resolved "https://registry.yarnpkg.com/google-closure-compiler-osx/-/google-closure-compiler-osx-20230802.0.0.tgz#10746ecfa81ad6eecc4d42d4ce9d0ed3ca8071e7"
531-
integrity sha512-ANAi/ux92Tt+Na7vFDLeK2hRzotjC5j+nxoPtE0OcuNcbjji5dREKoJxkq7r0YwRTCzAFZszK5ip/NPdTOdCEg==
532-
533-
google-closure-compiler-windows@^20230802.0.0:
534-
version "20230802.0.0"
535-
resolved "https://registry.yarnpkg.com/google-closure-compiler-windows/-/google-closure-compiler-windows-20230802.0.0.tgz#d57968dc24d5e0d538840b4313e1bec7c71b18d6"
536-
integrity sha512-ZQPujoNiiUyTGl8zEGR/0yAygWnbMtX/NQ/S/EHVgq5nmYkvDEVuiVbgpPAmO9lzBTq0hvUTRRATZbTU2ISxgA==
537-
538523
google-closure-compiler@20230802.0.0:
539524
version "20230802.0.0"
540525
resolved "https://registry.npmjs.org/google-closure-compiler/-/google-closure-compiler-20230802.0.0.tgz"
@@ -663,7 +648,7 @@ inflight@^1.0.4:
663648
once "^1.3.0"
664649
wrappy "1"
665650

666-
inherits@2, inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.3:
651+
inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.3, inherits@2:
667652
version "2.0.4"
668653
resolved "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz"
669654
integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==
@@ -791,7 +776,7 @@ jasmine@~3.5.0:
791776

792777
js-yaml@^4.1.0:
793778
version "4.3.2"
794-
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.3.2.tgz#8e44fb14a2643c59726bb15787b5f1512cb3d3fb"
779+
resolved "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.2.tgz"
795780
integrity sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==
796781
dependencies:
797782
argparse "^2.0.1"
@@ -885,7 +870,7 @@ node-fetch@^2.6.9:
885870
dependencies:
886871
whatwg-url "^5.0.0"
887872

888-
normalize-path@3.0.0, normalize-path@^3.0.0, normalize-path@~3.0.0:
873+
normalize-path@^3.0.0, normalize-path@~3.0.0, normalize-path@3.0.0:
889874
version "3.0.0"
890875
resolved "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz"
891876
integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==
@@ -1117,6 +1102,13 @@ streamx@^2.12.0, streamx@^2.12.5, streamx@^2.13.2, streamx@^2.14.0:
11171102
optionalDependencies:
11181103
bare-events "^2.2.0"
11191104

1105+
string_decoder@^1.1.1, string_decoder@~1.1.1:
1106+
version "1.1.1"
1107+
resolved "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz"
1108+
integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==
1109+
dependencies:
1110+
safe-buffer "~5.1.0"
1111+
11201112
string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
11211113
version "4.2.3"
11221114
resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz"
@@ -1126,13 +1118,6 @@ string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
11261118
is-fullwidth-code-point "^3.0.0"
11271119
strip-ansi "^6.0.1"
11281120

1129-
string_decoder@^1.1.1, string_decoder@~1.1.1:
1130-
version "1.1.1"
1131-
resolved "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz"
1132-
integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==
1133-
dependencies:
1134-
safe-buffer "~5.1.0"
1135-
11361121
strip-ansi@^6.0.0, strip-ansi@^6.0.1:
11371122
version "6.0.1"
11381123
resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz"
@@ -1279,6 +1264,17 @@ vinyl-sourcemaps-apply@^0.2.0:
12791264
dependencies:
12801265
source-map "^0.5.1"
12811266

1267+
vinyl@^3.0.0:
1268+
version "3.0.0"
1269+
resolved "https://registry.npmjs.org/vinyl/-/vinyl-3.0.0.tgz"
1270+
integrity sha512-rC2VRfAVVCGEgjnxHUnpIVh3AGuk62rP3tqVrn+yab0YH7UULisC085+NYH+mnqf3Wx4SpSi1RQMwudL89N03g==
1271+
dependencies:
1272+
clone "^2.1.2"
1273+
clone-stats "^1.0.0"
1274+
remove-trailing-separator "^1.1.0"
1275+
replace-ext "^2.0.0"
1276+
teex "^1.0.1"
1277+
12821278
vinyl@2.x:
12831279
version "2.2.1"
12841280
resolved "https://registry.npmjs.org/vinyl/-/vinyl-2.2.1.tgz"
@@ -1291,17 +1287,6 @@ vinyl@2.x:
12911287
remove-trailing-separator "^1.0.1"
12921288
replace-ext "^1.0.0"
12931289

1294-
vinyl@^3.0.0:
1295-
version "3.0.0"
1296-
resolved "https://registry.npmjs.org/vinyl/-/vinyl-3.0.0.tgz"
1297-
integrity sha512-rC2VRfAVVCGEgjnxHUnpIVh3AGuk62rP3tqVrn+yab0YH7UULisC085+NYH+mnqf3Wx4SpSi1RQMwudL89N03g==
1298-
dependencies:
1299-
clone "^2.1.2"
1300-
clone-stats "^1.0.0"
1301-
remove-trailing-separator "^1.1.0"
1302-
replace-ext "^2.0.0"
1303-
teex "^1.0.1"
1304-
13051290
webidl-conversions@^3.0.0:
13061291
version "3.0.1"
13071292
resolved "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz"

0 commit comments

Comments
 (0)