Skip to content

Commit

Permalink
Merge pull request #313 from Fdawgs/perf/require-prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Aug 31, 2023
2 parents 577b131 + e43ea37 commit 1f760a9
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"wpml"
],
"main": "src/index.js",
"type": "commonjs",
"types": "types/index.d.ts",
"repository": "git+https://github.com/Fdawgs/node-unrtf.git",
"homepage": "https://github.com/Fdawgs/node-unrtf",
Expand All @@ -31,7 +32,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
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"declaration": true,
"emitDeclarationOnly": true,
"lib": ["ES2019"],
"moduleResolution": "nodenext",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"outDir": "types",
"resolveJsonModule": true,
"strict": true
Expand Down

0 comments on commit 1f760a9

Please sign in to comment.