Skip to content

Commit d1aa35c

Browse files
committed
chore: add @nolyfill/is-core-module back
1 parent 1a1437b commit d1aa35c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"license": "ISC",
1313
"packageManager": "[email protected]",
1414
"engines": {
15-
"node": "^16.17.0 || >=18.6.0"
15+
"node": "^14.18.0 || >=16.0.0"
1616
},
1717
"main": "lib/index.cjs",
1818
"module": "lib/index.js",
@@ -77,7 +77,7 @@
7777
}
7878
},
7979
"dependencies": {
80-
"@nolyfill/is-core-module": "1.0.39",
80+
"@nolyfill/is-core-module": "^1.0.39",
8181
"debug": "^4.4.0",
8282
"get-tsconfig": "^4.10.0",
8383
"is-bun-module": "^1.3.0",

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { isBuiltin } from 'node:module'
21
import path from 'node:path'
32

3+
import isNodeCoreModule from '@nolyfill/is-core-module'
44
import type { ResolvedResult } from 'eslint-plugin-import-x/types.js'
55
import {
66
type FileMatcher,
@@ -65,7 +65,7 @@ export const resolve = (
6565
): ResolvedResult => {
6666
// don't worry about core node/bun modules
6767
if (
68-
isBuiltin(source) ||
68+
isNodeCoreModule(source) ||
6969
(process.versions.bun &&
7070
isBunModule(source, process.versions.bun as Version))
7171
) {

yarn.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3271,7 +3271,7 @@ __metadata:
32713271
languageName: node
32723272
linkType: hard
32733273

3274-
"@nolyfill/is-core-module@npm:1.0.39":
3274+
"@nolyfill/is-core-module@npm:^1.0.39":
32753275
version: 1.0.39
32763276
resolution: "@nolyfill/is-core-module@npm:1.0.39"
32773277
checksum: 10/0d6e098b871eca71d875651288e1f0fa770a63478b0b50479c99dc760c64175a56b5b04f58d5581bbcc6b552b8191ab415eada093d8df9597ab3423c8cac1815
@@ -6689,7 +6689,7 @@ __metadata:
66896689
"@changesets/cli": "npm:^2.28.1"
66906690
"@commitlint/cli": "npm:^19.8.0"
66916691
"@mozilla/glean": "npm:^5.0.3"
6692-
"@nolyfill/is-core-module": "npm:1.0.39"
6692+
"@nolyfill/is-core-module": "npm:^1.0.39"
66936693
"@pkgr/rollup": "npm:^6.0.0"
66946694
"@types/debug": "npm:^4.1.12"
66956695
"@types/node": "npm:^22.13.10"

0 commit comments

Comments
 (0)