Skip to content

Commit

Permalink
fix(module): Import fast-glob using the default import
Browse files Browse the repository at this point in the history
  • Loading branch information
kvoon3 committed May 10, 2024
1 parent bc4c2f9 commit 04da38b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 16 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@
}
},
"dependencies": {
"fast-glob": "^3.3.2",
"unplugin": "^1.5.1"
},
"devDependencies": {
Expand All @@ -134,7 +135,6 @@
"chalk": "^5.3.0",
"eslint": "^8.55.0",
"esno": "^4.0.0",
"fast-glob": "^3.3.2",
"nodemon": "^3.0.2",
"rimraf": "^5.0.5",
"rollup": "^4.6.1",
Expand Down
16 changes: 3 additions & 13 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { rm } from 'node:fs/promises'
import type { UnpluginFactory } from 'unplugin'
import { createUnplugin } from 'unplugin'
import type { Entry } from 'fast-glob'
import { glob } from 'fast-glob'
import fg from 'fast-glob'
import type { Options } from './types'
import { isTimeAgo } from './utils/time'

Expand All @@ -15,7 +15,7 @@ export const unpluginFactory: UnpluginFactory<Options> = options => ({
customFilter,
} = options

const files = await glob(filePattern, {
const files = await fg.glob(filePattern, {
stats: true,
})

Expand Down

0 comments on commit 04da38b

Please sign in to comment.