Skip to content

Commit

Permalink
fix: Change to using is-builtin-module (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
scagood authored Nov 10, 2023
1 parent 5343efd commit 2846f4f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ jobs:
node: [18.x, 20.x]
include:
# run on node lts(ubuntu-latest)
- os: ubuntu-latest
node: "16.0.x"
eslint: "8.x"
- os: ubuntu-latest
node: "16.x"
eslint: "8.x"
Expand Down
2 changes: 1 addition & 1 deletion lib/util/import-target.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

const path = require("path")
const { pathToFileURL, fileURLToPath } = require("url")
const { isBuiltin } = require("module")
const isBuiltin = require("is-builtin-module")
const resolve = require("resolve")
const {
defaultResolve: importResolve,
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"eslint-plugin-es-x": "^7.1.0",
"get-tsconfig": "^4.7.0",
"ignore": "^5.2.4",
"is-builtin-module": "^3.2.1",
"is-core-module": "^2.12.1",
"minimatch": "^3.1.2",
"resolve": "^1.22.2",
Expand Down

0 comments on commit 2846f4f

Please sign in to comment.