From 864c630d8e6bac2b567b9421bdad9ab037311392 Mon Sep 17 00:00:00 2001 From: finalerock44 Date: Wed, 7 Oct 2026 12:46:57 +0100 Subject: [PATCH] chore: load @types/node explicitly in tsconfig TypeScript 6 changes the `types` default to [], so @types/node is no longer picked up automatically and `pnpm build` fails with "Cannot find name 'process'" (and require, console, URL). That is what fails the TypeScript 6.0.3 bump in #15. Listing node in `types` works on 5.9 too, so this can land first and #15 rebases onto it. The build output is byte-identical to the committed dist/index.js. --- tsconfig.json | 1 + 1 file changed, 1 insertion(+) diff --git a/tsconfig.json b/tsconfig.json index 19f0df3..5c99288 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,6 +2,7 @@ "compilerOptions": { "target": "es6", "lib": ["es2016"], + "types": ["node"], "module": "commonjs", "outDir": "./dist", "rootDir": ".",