Skip to content

Commit ae054a9

Browse files
authored
chore: switch to tinyglobby (#124)
1 parent bf6f650 commit ae054a9

File tree

4 files changed

+38
-17
lines changed

4 files changed

+38
-17
lines changed

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@
4141
"chokidar": "catalog:",
4242
"debug": "catalog:",
4343
"esbuild": "catalog:",
44-
"fast-glob": "catalog:",
4544
"find-up": "catalog:",
4645
"get-port-please": "catalog:",
4746
"h3": "catalog:",
4847
"mlly": "catalog:",
4948
"mrmime": "catalog:",
5049
"open": "catalog:",
50+
"tinyglobby": "catalog:",
5151
"ws": "catalog:"
5252
},
5353
"devDependencies": {

Diff for: pnpm-lock.yaml

+34-13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: pnpm-workspace.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ catalog:
2828
debug: ^4.4.0
2929
esbuild: ^0.24.2
3030
eslint: ^9.18.0
31-
fast-glob: ^3.3.3
3231
find-up: ^7.0.0
3332
floating-vue: ^5.2.2
3433
fuse.js: ^7.0.0
@@ -45,6 +44,7 @@ catalog:
4544
shiki: ^1.27.0
4645
simple-git-hooks: ^2.11.1
4746
textmate-grammar-glob: ^0.0.1
47+
tinyglobby: ^0.2.11
4848
typescript: ^5.7.3
4949
unbuild: ^3.3.1
5050
vitest: ^2.1.8

Diff for: src/cli.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import process from 'node:process'
55

66
import c from 'ansis'
77
import cac from 'cac'
8-
import fg from 'fast-glob'
98
import { getPort } from 'get-port-please'
109
import open from 'open'
10+
import { glob } from 'tinyglobby'
1111
import { readConfig } from './configs'
1212
import { MARK_CHECK, MARK_INFO } from './constants'
1313
import { distDir } from './dirs'
@@ -64,7 +64,7 @@ cli
6464
await fs.rm(outDir, { recursive: true })
6565
await fs.mkdir(outDir, { recursive: true })
6666
await fs.cp(distDir, outDir, { recursive: true })
67-
const htmlFiles = await fg('**/*.html', { cwd: distDir, onlyFiles: true })
67+
const htmlFiles = await glob('**/*.html', { cwd: distDir, onlyFiles: true, expandDirectories: false })
6868
// Rewrite HTML files with base URL
6969
if (baseURL !== '/') {
7070
for (const file of htmlFiles) {

0 commit comments

Comments
 (0)