From 8202a1a818c9614a372b68f85594d5a08b4ae19f Mon Sep 17 00:00:00 2001 From: kurok <22548029+kurok@users.noreply.github.com> Date: Tue, 8 Sep 2026 17:25:23 +0100 Subject: [PATCH] chore(types): drop the removed moduleResolution=node10 from the type-check config TypeScript 7 removes moduleResolution=node10 (the "node" alias), so `tsc -p types/tsconfig.json` fails with TS5108 on the dependabot bump to 7.0.2 (#177). Use the node18 module preset instead, which implies the matching resolution and checks the `import = require()` test files the way a real CommonJS consumer resolves them. Only the type-check config changes; the published index.d.ts is untouched. Verified green on tsc 5.9.3, 6.x and 7.0.2. Signed-off-by: kurok <22548029+kurok@users.noreply.github.com> --- types/tsconfig.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/types/tsconfig.json b/types/tsconfig.json index d3381f5..b06d5da 100644 --- a/types/tsconfig.json +++ b/types/tsconfig.json @@ -2,8 +2,7 @@ "compilerOptions": { "target": "ES2020", "lib": ["ES2020"], - "module": "commonjs", - "moduleResolution": "node", + "module": "node18", "strict": true, "noEmit": true, "types": [],