Skip to content

Commit

Permalink
chore: remove is-builtin-module
Browse files Browse the repository at this point in the history
Removes `is-builtin-module` and uses the built in function provided by
node itself (via `node:module`).
  • Loading branch information
43081j authored and brettz9 committed May 15, 2024
1 parent d417d05 commit 244116e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 14 deletions.
1 change: 0 additions & 1 deletion .ncurc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ module.exports = {
'chai',
'decamelize',
'escape-string-regexp',
'is-builtin-module',
'open-editor',
],
};
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"debug": "^4.3.4",
"escape-string-regexp": "^4.0.0",
"esquery": "^1.5.0",
"is-builtin-module": "^3.2.1",
"semver": "^7.6.1",
"spdx-expression-parse": "^4.0.0"
},
Expand Down
19 changes: 8 additions & 11 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/rules/importsAsDependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
import {
readFileSync,
} from 'fs';
import isBuiltinModule from 'is-builtin-module';
import {isBuiltin as isBuiltinModule} from 'node:module';
import {
join,
} from 'path';
Expand Down

0 comments on commit 244116e

Please sign in to comment.