Skip to content

Commit 6e91a05

Browse files
authored
Replace globby with glob (#1398)
1 parent 3db0010 commit 6e91a05

File tree

3 files changed

+46
-21
lines changed

3 files changed

+46
-21
lines changed

gatsby-node.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { GatsbyNode } from "gatsby"
22
import * as path from "path"
3-
import * as globby from "globby"
3+
import { glob } from "glob"
44
import { updateCodeData } from "./scripts/update-code-data/update-code-data"
55
import { organizeCodeData } from "./scripts/update-code-data/organize-code-data"
66
import { sortCodeData } from "./scripts/update-code-data/sort-code-data"
@@ -93,7 +93,7 @@ export const onCreatePage: GatsbyNode["onCreatePage"] = async ({
9393
sourcePath: path.relative(__dirname, page.path),
9494
}
9595
if (page.path === "/code" || page.path === "/code/") {
96-
const markdownFilePaths = await globby("src/content/code/**/*.md")
96+
const markdownFilePaths = await glob("src/content/code/**/*.md")
9797
const slugMap = require("./src/content/code/slug-map.json")
9898
const codeData = await updateCodeData(markdownFilePaths, slugMap)
9999
const organizeData = await organizeCodeData(codeData)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"gatsby-plugin-webfonts": "2.3.2",
3434
"gatsby-source-filesystem": "5.8.0",
3535
"gatsby-transformer-remark": "6.8.0",
36-
"globby": "11.0.4",
36+
"glob": "9.3.4",
3737
"graphql": "16.6.0",
3838
"marked": "4.3.0",
3939
"numbro": "2.3.6",

yarn.lock

Lines changed: 43 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3963,6 +3963,13 @@ brace-expansion@^1.1.7:
39633963
balanced-match "^1.0.0"
39643964
concat-map "0.0.1"
39653965

3966+
brace-expansion@^2.0.1:
3967+
version "2.0.1"
3968+
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-2.0.1.tgz#1edc459e0f0c548486ecf9fc99f2221364b9a0ae"
3969+
integrity sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==
3970+
dependencies:
3971+
balanced-match "^1.0.0"
3972+
39663973
braces@^3.0.2, braces@~3.0.2:
39673974
version "3.0.2"
39683975
resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107"
@@ -5975,7 +5982,7 @@ fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3:
59755982
resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525"
59765983
integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==
59775984

5978-
fast-glob@^3.1.1, fast-glob@^3.2.12, fast-glob@^3.2.5, fast-glob@^3.2.9:
5985+
fast-glob@^3.2.12, fast-glob@^3.2.5, fast-glob@^3.2.9:
59795986
version "3.2.12"
59805987
resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.12.tgz#7f39ec99c2e6ab030337142da9e0c18f37afae80"
59815988
integrity sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==
@@ -6907,6 +6914,16 @@ glob@7.1.6:
69076914
once "^1.3.0"
69086915
path-is-absolute "^1.0.0"
69096916

6917+
glob@9.3.4:
6918+
version "9.3.4"
6919+
resolved "https://registry.yarnpkg.com/glob/-/glob-9.3.4.tgz#e75dee24891a80c25cc7ee1dd327e126b98679af"
6920+
integrity sha512-qaSc49hojMOv1EPM4EuyITjDSgSKI0rthoHnvE81tcOi1SCVndHko7auqxdQ14eiQG2NDBJBE86+2xIrbIvrbA==
6921+
dependencies:
6922+
fs.realpath "^1.0.0"
6923+
minimatch "^8.0.2"
6924+
minipass "^4.2.4"
6925+
path-scurry "^1.6.1"
6926+
69106927
glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.6, glob@^7.2.3:
69116928
version "7.2.3"
69126929
resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b"
@@ -6954,18 +6971,6 @@ globals@^13.2.0, globals@^13.6.0, globals@^13.9.0:
69546971
dependencies:
69556972
type-fest "^0.20.2"
69566973

6957-
globby@11.0.4:
6958-
version "11.0.4"
6959-
resolved "https://registry.yarnpkg.com/globby/-/globby-11.0.4.tgz#2cbaff77c2f2a62e71e9b2813a67b97a3a3001a5"
6960-
integrity sha512-9O4MVG9ioZJ08ffbcyVYyLOJLk5JQ688pJ4eMGLpdWLHq/Wr1D9BlriLQyL0E+jbkuePVZXYFj47QM/v093wHg==
6961-
dependencies:
6962-
array-union "^2.1.0"
6963-
dir-glob "^3.0.1"
6964-
fast-glob "^3.1.1"
6965-
ignore "^5.1.4"
6966-
merge2 "^1.3.0"
6967-
slash "^3.0.0"
6968-
69696974
globby@^11.0.3, globby@^11.0.4, globby@^11.1.0:
69706975
version "11.1.0"
69716976
resolved "https://registry.yarnpkg.com/globby/-/globby-11.1.0.tgz#bd4be98bb042f83d796f7e3811991fbe82a0d34b"
@@ -7380,11 +7385,6 @@ ignore@^4.0.6:
73807385
resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc"
73817386
integrity sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==
73827387

7383-
ignore@^5.1.4:
7384-
version "5.2.4"
7385-
resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.2.4.tgz#a291c0c6178ff1b960befe47fcdec301674a6324"
7386-
integrity sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==
7387-
73887388
ignore@^5.1.8, ignore@^5.2.0:
73897389
version "5.2.0"
73907390
resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.2.0.tgz#6d3bac8fa7fe0d45d9f9be7bac2fc279577e345a"
@@ -8413,6 +8413,11 @@ lru-cache@^6.0.0:
84138413
dependencies:
84148414
yallist "^4.0.0"
84158415

8416+
lru-cache@^7.14.1:
8417+
version "7.18.3"
8418+
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-7.18.3.tgz#f793896e0fd0e954a59dfdd82f0773808df6aa89"
8419+
integrity sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==
8420+
84168421
lru-queue@^0.1.0:
84178422
version "0.1.0"
84188423
resolved "https://registry.yarnpkg.com/lru-queue/-/lru-queue-0.1.0.tgz#2738bd9f0d3cf4f84490c5736c48699ac632cda3"
@@ -8824,11 +8829,23 @@ minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2:
88248829
dependencies:
88258830
brace-expansion "^1.1.7"
88268831

8832+
minimatch@^8.0.2:
8833+
version "8.0.3"
8834+
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-8.0.3.tgz#0415cb9bb0c1d8ac758c8a673eb1d288e13f5e75"
8835+
integrity sha512-tEEvU9TkZgnFDCtpnrEYnPsjT7iUx42aXfs4bzmQ5sMA09/6hZY0jeZcGkXyDagiBOvkUjNo8Viom+Me6+2x7g==
8836+
dependencies:
8837+
brace-expansion "^2.0.1"
8838+
88278839
minimist@^1.2.0, minimist@^1.2.3, minimist@^1.2.5, minimist@^1.2.6:
88288840
version "1.2.7"
88298841
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.7.tgz#daa1c4d91f507390437c6a8bc01078e7000c4d18"
88308842
integrity sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==
88318843

8844+
minipass@^4.0.2, minipass@^4.2.4:
8845+
version "4.2.5"
8846+
resolved "https://registry.yarnpkg.com/minipass/-/minipass-4.2.5.tgz#9e0e5256f1e3513f8c34691dd68549e85b2c8ceb"
8847+
integrity sha512-+yQl7SX3bIT83Lhb4BVorMAHVuqsskxRdlmO9kTpyukp8vsm2Sn/fUOV9xlnG8/a5JsypJzap21lz/y3FBMJ8Q==
8848+
88328849
mitt@^1.2.0:
88338850
version "1.2.0"
88348851
resolved "https://registry.yarnpkg.com/mitt/-/mitt-1.2.0.tgz#cb24e6569c806e31bd4e3995787fe38a04fdf90d"
@@ -9543,6 +9560,14 @@ path-root@^0.1.1:
95439560
dependencies:
95449561
path-root-regex "^0.1.0"
95459562

9563+
path-scurry@^1.6.1:
9564+
version "1.6.3"
9565+
resolved "https://registry.yarnpkg.com/path-scurry/-/path-scurry-1.6.3.tgz#4eba7183d64ef88b63c7d330bddc3ba279dc6c40"
9566+
integrity sha512-RAmB+n30SlN+HnNx6EbcpoDy9nwdpcGPnEKrJnu6GZoDWBdIjo1UQMVtW2ybtC7LC2oKLcMq8y5g8WnKLiod9g==
9567+
dependencies:
9568+
lru-cache "^7.14.1"
9569+
minipass "^4.0.2"
9570+
95469571
path-to-regexp@0.1.7:
95479572
version "0.1.7"
95489573
resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.7.tgz#df604178005f522f15eb4490e7247a1bfaa67f8c"

0 commit comments

Comments
 (0)