Skip to content

Commit

Permalink
bump glob to 10.3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Apr 26, 2024
1 parent 484edc6 commit eec30b0
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 40 deletions.
2 changes: 1 addition & 1 deletion packages/babel-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"commander": "^4.0.1",
"convert-source-map": "^2.0.0",
"fs-readdir-recursive": "^1.1.0",
"glob": "condition:BABEL_8_BREAKING ? ^9.3.5 : ^7.2.0",
"glob": "condition:BABEL_8_BREAKING ? ^10.3.12 : ^7.2.0",
"make-dir": "condition:BABEL_8_BREAKING ? : ^2.1.0",
"slash": "condition:BABEL_8_BREAKING ? ^3.0.0 : ^2.0.0"
},
Expand Down
12 changes: 6 additions & 6 deletions packages/babel-cli/src/babel/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import fs from "fs";

import commander from "commander";
import { version, DEFAULT_EXTENSIONS } from "@babel/core";
import glob from "glob";
import { sync as globSync } from "glob";

import type { InputOptions } from "@babel/core";

Expand Down Expand Up @@ -217,13 +217,13 @@ export default function parseArgv(args: Array<string>): CmdOptions | null {
// glob 9+ no longer sorts the result, here we maintain the glob 7 behaviour
// https://github.com/isaacs/node-glob/blob/c3cd57ae128faa0e9190492acc743bb779ac4054/common.js#L151
// eslint-disable-next-line no-var
var files = glob
.sync(input, { dotRelative: true })
.sort(function alphasort(a, b) {
var files = globSync(input, { dotRelative: true }).sort(
function alphasort(a, b) {
return a.localeCompare(b, "en");
});
},
);
} else {
files = glob.sync(input);
files = globSync(input);
}
if (!files.length) files = [input];
globbed.push(...files);
Expand Down
53 changes: 20 additions & 33 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ __metadata:
commander: "npm:^4.0.1"
convert-source-map: "npm:^2.0.0"
fs-readdir-recursive: "npm:^1.1.0"
glob: "condition:BABEL_8_BREAKING ? ^9.3.5 : ^7.2.0"
glob: "condition:BABEL_8_BREAKING ? ^10.3.12 : ^7.2.0"
make-dir: "condition:BABEL_8_BREAKING ? : ^2.1.0"
semver: "npm:^6.3.1"
slash: "condition:BABEL_8_BREAKING ? ^3.0.0 : ^2.0.0"
Expand Down Expand Up @@ -10339,15 +10339,18 @@ __metadata:
languageName: node
linkType: hard

"glob-BABEL_8_BREAKING-true@npm:glob@^9.3.5":
version: 9.3.5
resolution: "glob@npm:9.3.5"
"glob-BABEL_8_BREAKING-true@npm:glob@^10.3.12":
version: 10.3.12
resolution: "glob@npm:10.3.12"
dependencies:
fs.realpath: "npm:^1.0.0"
minimatch: "npm:^8.0.2"
minipass: "npm:^4.2.4"
path-scurry: "npm:^1.6.1"
checksum: 10/e5fa8a58adf53525bca42d82a1fad9e6800032b7e4d372209b80cfdca524dd9a7dbe7d01a92d7ed20d89c572457f12c250092bc8817cb4f1c63efefdf9b658c0
foreground-child: "npm:^3.1.0"
jackspeak: "npm:^2.3.6"
minimatch: "npm:^9.0.1"
minipass: "npm:^7.0.4"
path-scurry: "npm:^1.10.2"
bin:
glob: dist/esm/bin.mjs
checksum: 10/9e8186abc22dc824b5dd86cefd8e6b5621a72d1be7f68bacc0fd681e8c162ec5546660a6ec0553d6a74757a585e655956c7f8f1a6d24570e8d865c307323d178
languageName: node
linkType: hard

Expand Down Expand Up @@ -10419,13 +10422,13 @@ __metadata:
languageName: node
linkType: hard

"glob@condition:BABEL_8_BREAKING ? ^9.3.5 : ^7.2.0":
version: 0.0.0-condition-99e4f3
resolution: "glob@condition:BABEL_8_BREAKING?^9.3.5:^7.2.0#99e4f3"
"glob@condition:BABEL_8_BREAKING ? ^10.3.12 : ^7.2.0":
version: 0.0.0-condition-0bad83
resolution: "glob@condition:BABEL_8_BREAKING?^10.3.12:^7.2.0#0bad83"
dependencies:
glob-BABEL_8_BREAKING-false: "npm:glob@^7.2.0"
glob-BABEL_8_BREAKING-true: "npm:glob@^9.3.5"
checksum: 10/9863d5ac03449494b1993f6f2e980006232e618713690e7c2475ada191e84415bff1b68f828e7d24b3fa04781866bc86559d5cd03accf804df7f030dedfdc87c
glob-BABEL_8_BREAKING-true: "npm:glob@^10.3.12"
checksum: 10/2887d633e02b13b92c81b3de2eebbd841f454a90f972f23ca45bafab4408fca132873b5486b24b373d9f0366ff55232b67cbddead5e17fd9b6ba0cfd1bde3232
languageName: node
linkType: hard

Expand Down Expand Up @@ -11705,7 +11708,7 @@ __metadata:
languageName: node
linkType: hard

"jackspeak@npm:^2.3.5":
"jackspeak@npm:^2.3.5, jackspeak@npm:^2.3.6":
version: 2.3.6
resolution: "jackspeak@npm:2.3.6"
dependencies:
Expand Down Expand Up @@ -13171,15 +13174,6 @@ __metadata:
languageName: node
linkType: hard

"minimatch@npm:^8.0.2":
version: 8.0.4
resolution: "minimatch@npm:8.0.4"
dependencies:
brace-expansion: "npm:^2.0.1"
checksum: 10/aef05598ee565e1013bc8a10f53410ac681561f901c1a084b8ecfd016c9ed919f58f4bbd5b63e05643189dfb26e8106a84f0e1ff12e4a263aa37e1cae7ce9828
languageName: node
linkType: hard

"minimist@npm:^1.1.0, minimist@npm:^1.2.0, minimist@npm:^1.2.6":
version: 1.2.8
resolution: "minimist@npm:1.2.8"
Expand All @@ -13196,14 +13190,7 @@ __metadata:
languageName: node
linkType: hard

"minipass@npm:^4.2.4":
version: 4.2.8
resolution: "minipass@npm:4.2.8"
checksum: 10/e148eb6dcb85c980234cad889139ef8ddf9d5bdac534f4f0268446c8792dd4c74f4502479be48de3c1cce2f6450f6da4d0d4a86405a8a12be04c1c36b339569a
languageName: node
linkType: hard

"minipass@npm:^5.0.0 || ^6.0.2 || ^7.0.0":
"minipass@npm:^5.0.0 || ^6.0.2 || ^7.0.0, minipass@npm:^7.0.4":
version: 7.0.4
resolution: "minipass@npm:7.0.4"
checksum: 10/e864bd02ceb5e0707696d58f7ce3a0b89233f0d686ef0d447a66db705c0846a8dc6f34865cd85256c1472ff623665f616b90b8ff58058b2ad996c5de747d2d18
Expand Down Expand Up @@ -14140,7 +14127,7 @@ __metadata:
languageName: node
linkType: hard

"path-scurry@npm:^1.10.1, path-scurry@npm:^1.6.1":
"path-scurry@npm:^1.10.1, path-scurry@npm:^1.10.2":
version: 1.10.2
resolution: "path-scurry@npm:1.10.2"
dependencies:
Expand Down

0 comments on commit eec30b0

Please sign in to comment.