Skip to content

Commit 0fd4eea

Browse files
benmccannSukkaW
andauthored
chore: switch to tinyglobby (#330)
* chore: switch to tinyglobby * chore: update lockfile * chore: make eslint happy * chore: yarn dedupe --------- Co-authored-by: SukkaW <isukkaw@gmail.com>
1 parent d1807bd commit 0fd4eea

File tree

3 files changed

+62
-206
lines changed

3 files changed

+62
-206
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,11 @@
7979
"@nolyfill/is-core-module": "1.0.39",
8080
"debug": "^4.3.7",
8181
"enhanced-resolve": "^5.15.0",
82-
"fast-glob": "^3.3.2",
8382
"get-tsconfig": "^4.7.5",
8483
"is-bun-module": "^1.0.2",
8584
"is-glob": "^4.0.3",
86-
"stable-hash": "^0.0.4"
85+
"stable-hash": "^0.0.4",
86+
"tinyglobby": "^0.2.10"
8787
},
8888
"devDependencies": {
8989
"@1stg/eslint-config": "7",

src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,13 @@ import isNodeCoreModule from '@nolyfill/is-core-module'
55
import debug from 'debug'
66
import type { FileSystem, ResolveOptions, Resolver } from 'enhanced-resolve'
77
import enhancedResolve from 'enhanced-resolve'
8-
import fg from 'fast-glob'
98
import { createPathsMatcher, getTsconfig } from 'get-tsconfig'
109
import type { TsConfigResult } from 'get-tsconfig'
1110
import type { Version } from 'is-bun-module'
1211
import { isBunModule } from 'is-bun-module'
1312
import isGlob from 'is-glob'
1413
import stableHashExports from 'stable-hash'
15-
16-
const { globSync } = fg
14+
import { globSync } from 'tinyglobby'
1715

1816
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- esmodule interop
1917
const stableHash = stableHashExports.default || stableHashExports
@@ -393,7 +391,9 @@ function initMappers(options: InternalResolverOptions) {
393391
const projectPaths = [
394392
...new Set([
395393
...configPaths.filter(path => !isGlob(path)),
396-
...globSync([...configPaths.filter(path => isGlob(path)), ...ignore]),
394+
...globSync([...configPaths.filter(path => isGlob(path)), ...ignore], {
395+
expandDirectories: false,
396+
}),
397397
]),
398398
]
399399

0 commit comments

Comments
 (0)