Skip to content

Commit 6de342b

Browse files
authored
chore: switch to tinyglobby (#5395)
1 parent e0729b6 commit 6de342b

3 files changed

Lines changed: 13 additions & 13 deletions

File tree

packages/router-utils/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@
6969
"@babel/preset-typescript": "^7.27.1",
7070
"ansis": "^4.1.0",
7171
"diff": "^8.0.2",
72-
"fast-glob": "^3.3.3",
73-
"pathe": "^2.0.3"
72+
"pathe": "^2.0.3",
73+
"tinyglobby": "^0.2.15"
7474
},
7575
"devDependencies": {
7676
"@babel/types": "^7.27.6",

packages/router-utils/src/copy-files-plugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { copyFile, mkdir } from 'node:fs/promises'
22
import { dirname, join } from 'pathe'
3-
import fg from 'fast-glob'
3+
import { glob } from 'tinyglobby'
44
import type { Plugin } from 'vite'
55

66
export function copyFilesPlugin({
@@ -15,7 +15,7 @@ export function copyFilesPlugin({
1515
return {
1616
name: 'copy-files',
1717
async writeBundle() {
18-
const entries = await fg(pattern, { cwd: fromDir })
18+
const entries = await glob(pattern, { cwd: fromDir })
1919
if (entries.length === 0) {
2020
throw new Error(
2121
`No files found matching pattern "${pattern}" in directory "${fromDir}"`,

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)