Skip to content

Commit abd7526

Browse files
committed
refactor: switch from globby to tinyglobby
This is a simple use case so it should be a drop in replacement.
1 parent 70bb09f commit abd7526

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

modules/standard-site-sync.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ export default defineNuxtModule({
3333
if (nuxt.options._prepare) return
3434

3535
nuxt.hook('build:before', async () => {
36-
const { globby } = await import('globby')
37-
const files: string[] = await globby(`${contentDir}/**/*.md`)
36+
const { glob } = await import('tinyglobby')
37+
const files: string[] = await glob(`${contentDir}/**/*.md`)
3838

3939
// INFO: Arbitrarily chosen concurrency limit, can be changed if needed
4040
const concurrencyLimit = 5

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
"defu": "6.1.4",
7777
"fast-npm-meta": "1.0.0",
7878
"focus-trap": "^7.8.0",
79-
"globby": "16.1.0",
79+
"tinyglobby": "0.2.15",
8080
"marked": "17.0.1",
8181
"module-replacements": "2.11.0",
8282
"nuxt": "4.3.0",

pnpm-lock.yaml

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)