From 0acf872a1e8f4ebbcc42f0f97778be42f3592b9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jind=C5=99ich=20B=C3=A4r?= Date: Thu, 28 May 2026 16:47:37 +0200 Subject: [PATCH] fix(node): make typedoc resolve node Buffer type via tsconfig.docs.json --- impit-node/package.json | 2 +- impit-node/tsconfig.docs.json | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 impit-node/tsconfig.docs.json diff --git a/impit-node/package.json b/impit-node/package.json index 9e1e7ad6..c35112a3 100644 --- a/impit-node/package.json +++ b/impit-node/package.json @@ -46,7 +46,7 @@ "artifacts": "napi artifacts --output-dir ../artifacts --npm-dir npm", "build": "napi build --platform --release --no-const-enum", "build:debug": "napi build --platform --no-const-enum", - "docs": "pnpm build:debug && typedoc --plugin typedoc-plugin-mdn-links ./index.d.ts --out ./docs", + "docs": "pnpm build:debug && typedoc --plugin typedoc-plugin-mdn-links --tsconfig ./tsconfig.docs.json ./index.d.ts --out ./docs", "prepublishOnly": "napi prepublish -t npm --no-gh-release", "test": "vitest --retry=3 && node ./test/e2e/run-e2e-tests.mjs", "universal": "napi universal", diff --git a/impit-node/tsconfig.docs.json b/impit-node/tsconfig.docs.json new file mode 100644 index 00000000..169c56cf --- /dev/null +++ b/impit-node/tsconfig.docs.json @@ -0,0 +1,6 @@ +{ + "compilerOptions": { + "types": ["node"] + }, + "files": ["index.d.ts"] +}