File tree 3 files changed +8
-17
lines changed
3 files changed +8
-17
lines changed Original file line number Diff line number Diff line change 81
81
"enhanced-resolve" : " ^5.15.0" ,
82
82
"get-tsconfig" : " ^4.7.5" ,
83
83
"is-bun-module" : " ^1.0.2" ,
84
- "is-glob" : " ^4.0.3" ,
85
84
"stable-hash" : " ^0.0.4" ,
86
85
"tinyglobby" : " ^0.2.10"
87
86
},
94
93
"@mozilla/glean" : " ^3.0.0" ,
95
94
"@pkgr/rollup" : " ^4.1.3" ,
96
95
"@types/debug" : " ^4.1.12" ,
97
- "@types/is-glob" : " ^4.0.4" ,
98
96
"@types/node" : " ^18.19.67" ,
99
97
"@types/unist" : " ^2.0.11" ,
100
98
"dummy.js" : " link:dummy.js" ,
Original file line number Diff line number Diff line change @@ -9,9 +9,8 @@ import { createPathsMatcher, getTsconfig } from 'get-tsconfig'
9
9
import type { TsConfigResult } from 'get-tsconfig'
10
10
import type { Version } from 'is-bun-module'
11
11
import { isBunModule } from 'is-bun-module'
12
- import isGlob from 'is-glob'
13
12
import stableHashExports from 'stable-hash'
14
- import { globSync } from 'tinyglobby'
13
+ import { globSync , isDynamicPattern } from 'tinyglobby'
15
14
16
15
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- esmodule interop
17
16
const stableHash = stableHashExports . default || stableHashExports
@@ -390,10 +389,13 @@ function initMappers(options: InternalResolverOptions) {
390
389
// turn glob patterns into paths
391
390
const projectPaths = [
392
391
...new Set ( [
393
- ...configPaths . filter ( path => ! isGlob ( path ) ) ,
394
- ...globSync ( [ ...configPaths . filter ( path => isGlob ( path ) ) , ...ignore ] , {
395
- expandDirectories : false ,
396
- } ) ,
392
+ ...configPaths . filter ( path => ! isDynamicPattern ( path ) ) ,
393
+ ...globSync (
394
+ [ ...configPaths . filter ( path => isDynamicPattern ( path ) ) , ...ignore ] ,
395
+ {
396
+ expandDirectories : false ,
397
+ } ,
398
+ ) ,
397
399
] ) ,
398
400
]
399
401
Original file line number Diff line number Diff line change @@ -3648,13 +3648,6 @@ __metadata:
3648
3648
languageName: node
3649
3649
linkType: hard
3650
3650
3651
- "@types/is-glob@npm:^4.0.4":
3652
- version: 4.0.4
3653
- resolution: "@types/is-glob@npm:4.0.4"
3654
- checksum: c790125e2d133d15c9783f6468995841cb06b5634b5c7b30aa32d23129f19d7dc271ec1a904bea4ca1e6a5ba19218a6602753d558f343b4fb8402fed25d17219
3655
- languageName: node
3656
- linkType: hard
3657
-
3658
3651
"@types/json-schema@npm:^7.0.9":
3659
3652
version: 7.0.15
3660
3653
resolution: "@types/json-schema@npm:7.0.15"
@@ -6158,7 +6151,6 @@ __metadata:
6158
6151
"@nolyfill/is-core-module": "npm:1.0.39"
6159
6152
"@pkgr/rollup": "npm:^4.1.3"
6160
6153
"@types/debug": "npm:^4.1.12"
6161
- "@types/is-glob": "npm:^4.0.4"
6162
6154
"@types/node": "npm:^18.19.67"
6163
6155
"@types/unist": "npm:^2.0.11"
6164
6156
debug: "npm:^4.3.7"
@@ -6170,7 +6162,6 @@ __metadata:
6170
6162
eslint-plugin-import-x: "npm:^4.5.0"
6171
6163
get-tsconfig: "npm:^4.7.5"
6172
6164
is-bun-module: "npm:^1.0.2"
6173
- is-glob: "npm:^4.0.3"
6174
6165
lint-staged: "npm:^13.3.0"
6175
6166
npm-run-all2: "npm:^5.0.2"
6176
6167
prettier: "npm:^2.8.8"
You can’t perform that action at this time.
0 commit comments