Skip to content

Commit

Permalink
perf: use node: prefix to bypass require.cache call for builtins
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Aug 30, 2023
1 parent 25254c2 commit db1b1a8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"author": "Frazer Smith <frazer.dev@outlook.com>",
"funding": "https://github.com/sponsors/Fdawgs",
"engines": {
"node": ">=14.0.0"
"node": ">=14.18.0"
},
"scripts": {
"build": "tsc && jsdoc2md src/index.js > API.md && npm run lint:prettier:fix",
Expand Down
2 changes: 1 addition & 1 deletion scripts/license-checker.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

"use strict";

const { promisify } = require("util");
const { promisify } = require("node:util");
const { init } = require("license-checker");
// @ts-ignore
const copyLeftLicenses = require("spdx-copyleft");
Expand Down
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"use strict";

const { execFile, spawn } = require("child_process");
const { promisify } = require("util");
const { readFile } = require("fs/promises");
const { execFile, spawn } = require("node:child_process");
const { promisify } = require("node:util");
const { readFile } = require("node:fs/promises");
const { gt, lt } = require("semver");
const path = require("upath");

Expand Down
4 changes: 2 additions & 2 deletions src/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

"use strict";

const { execFile } = require("child_process");
const { promisify } = require("util");
const { execFile } = require("node:child_process");
const { promisify } = require("node:util");
const isHtml = require("is-html");
const { gt, lt } = require("semver");
const path = require("upath");
Expand Down

0 comments on commit db1b1a8

Please sign in to comment.