Skip to content

Commit 7666123

Browse files
committed
chore!: drop node 14
1 parent aec170e commit 7666123

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

Diff for: package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"license": "ISC",
1313
"packageManager": "[email protected]",
1414
"engines": {
15-
"node": "^14.18.0 || >=16.0.0"
15+
"node": "^16.17.0 || >=18.6.0"
1616
},
1717
"main": "lib/index.cjs",
1818
"module": "lib/index.js",
@@ -76,7 +76,6 @@
7676
}
7777
},
7878
"dependencies": {
79-
"@nolyfill/is-core-module": "1.0.39",
8079
"@pkgr/core": "^0.1.1",
8180
"debug": "^4.3.7",
8281
"eslint-import-resolver-oxc": "^0.12.0",

Diff for: src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import { isBuiltin } from 'node:module'
12
import path from 'node:path'
23

3-
import isNodeCoreModule from '@nolyfill/is-core-module'
44
import { resolve as oxcResolve } from 'eslint-import-resolver-oxc'
55
import { type Version, isBunModule } from 'is-bun-module'
66
import { ResolverFactory } from 'oxc-resolver'
@@ -27,7 +27,7 @@ export const resolve = (
2727
} => {
2828
// don't worry about core node/bun modules
2929
if (
30-
isNodeCoreModule(source) ||
30+
isBuiltin(source) ||
3131
(process.versions.bun &&
3232
isBunModule(source, process.versions.bun as Version))
3333
) {

Diff for: yarn.lock

-8
Original file line numberDiff line numberDiff line change
@@ -3244,13 +3244,6 @@ __metadata:
32443244
languageName: node
32453245
linkType: hard
32463246

3247-
"@nolyfill/is-core-module@npm:1.0.39":
3248-
version: 1.0.39
3249-
resolution: "@nolyfill/is-core-module@npm:1.0.39"
3250-
checksum: 10/0d6e098b871eca71d875651288e1f0fa770a63478b0b50479c99dc760c64175a56b5b04f58d5581bbcc6b552b8191ab415eada093d8df9597ab3423c8cac1815
3251-
languageName: node
3252-
linkType: hard
3253-
32543247
"@nolyfill/json-stable-stringify@npm:^1.0.30":
32553248
version: 1.0.44
32563249
resolution: "@nolyfill/json-stable-stringify@npm:1.0.44"
@@ -6358,7 +6351,6 @@ __metadata:
63586351
"@changesets/cli": "npm:^2.27.12"
63596352
"@commitlint/cli": "npm:^17.8.1"
63606353
"@mozilla/glean": "npm:^3.0.0"
6361-
"@nolyfill/is-core-module": "npm:1.0.39"
63626354
"@pkgr/core": "npm:^0.1.1"
63636355
"@pkgr/rollup": "npm:^4.1.3"
63646356
"@types/debug": "npm:^4.1.12"

0 commit comments

Comments
 (0)