File tree 4 files changed +32
-2
lines changed
4 files changed +32
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' eslint-import-resolver-typescript ' : patch
3
+ ---
4
+
5
+ fix: ignore bun built-in modules
Original file line number Diff line number Diff line change 80
80
"eslint-module-utils" : " ^2.8.1" ,
81
81
"fast-glob" : " ^3.3.2" ,
82
82
"get-tsconfig" : " ^4.7.5" ,
83
+ "is-bun-module" : " ^1.0.2" ,
83
84
"is-glob" : " ^4.0.3"
84
85
},
85
86
"devDependencies" : {
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ import { hashObject } from 'eslint-module-utils/hash.js'
9
9
import fg from 'fast-glob'
10
10
import { createPathsMatcher , getTsconfig } from 'get-tsconfig'
11
11
import type { TsConfigResult } from 'get-tsconfig'
12
+ import type { Version } from 'is-bun-module'
13
+ import { isBunModule } from 'is-bun-module'
12
14
import isGlob from 'is-glob'
13
15
14
16
const { globSync } = fg
@@ -168,8 +170,11 @@ export function resolve(
168
170
169
171
source = removeQuerystring ( source )
170
172
171
- // don't worry about core node modules
172
- if ( isBuiltin ( source ) ) {
173
+ // don't worry about core node/bun modules
174
+ if (
175
+ isBuiltin ( source ) ||
176
+ isBunModule ( source , ( process . versions . bun ?? 'latest' ) as Version )
177
+ ) {
173
178
log ( 'matched core:' , source )
174
179
175
180
return {
Original file line number Diff line number Diff line change @@ -6123,6 +6123,7 @@ __metadata:
6123
6123
eslint-plugin-import: "npm:eslint-plugin-i@^2.29.1"
6124
6124
fast-glob: "npm:^3.3.2"
6125
6125
get-tsconfig: "npm:^4.7.5"
6126
+ is-bun-module: "npm:^1.0.2"
6126
6127
is-glob: "npm:^4.0.3"
6127
6128
lint-staged: "npm:^13.3.0"
6128
6129
npm-run-all2: "npm:^5.0.2"
@@ -7927,6 +7928,15 @@ __metadata:
7927
7928
languageName: node
7928
7929
linkType: hard
7929
7930
7931
+ "is-bun-module@npm:^1.0.2":
7932
+ version: 1.0.2
7933
+ resolution: "is-bun-module@npm:1.0.2"
7934
+ dependencies:
7935
+ semver: "npm:^7.6.2"
7936
+ checksum: be9685b33954c24f4bee648b21c58d8453842ff84bdffe0e2959e4e71b0861f81ef48fc9e1ed319faf57fd749bd2eed0718ab86f299e9a1ed987dda53890b691
7937
+ languageName: node
7938
+ linkType: hard
7939
+
7930
7940
"is-callable@npm:^1.1.3, is-callable@npm:^1.1.4, is-callable@npm:^1.2.7":
7931
7941
version: 1.2.7
7932
7942
resolution: "is-callable@npm:1.2.7"
@@ -12726,6 +12736,15 @@ __metadata:
12726
12736
languageName: node
12727
12737
linkType: hard
12728
12738
12739
+ "semver@npm:^7.6.2":
12740
+ version: 7.6.2
12741
+ resolution: "semver@npm:7.6.2"
12742
+ bin:
12743
+ semver: bin/semver.js
12744
+ checksum: 296b17d027f57a87ef645e9c725bff4865a38dfc9caf29b26aa084b85820972fbe7372caea1ba6857162fa990702c6d9c1d82297cecb72d56c78ab29070d2ca2
12745
+ languageName: node
12746
+ linkType: hard
12747
+
12729
12748
"set-blocking@npm:^2.0.0":
12730
12749
version: 2.0.0
12731
12750
resolution: "set-blocking@npm:2.0.0"
You can’t perform that action at this time.
0 commit comments