From 243e73dfb6c4f871dd4ccd68531feaba759a3d65 Mon Sep 17 00:00:00 2001 From: mcp-tool-shop <64996768+mcp-tool-shop@users.noreply.github.com> Date: Mon, 18 May 2026 20:13:37 -0400 Subject: [PATCH] fix(ci): include node types under TS6 + bump brace-expansion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit TypeScript 6 with module: Node16 and @types/node@25 no longer auto-includes node type definitions. `import { readFileSync } from "node:fs"` failed across the codebase with TS2591 "Cannot find name 'node:fs'", breaking CI on every push since 2026-04-25. Adding `"types": ["node"]` to tsconfig.json compilerOptions explicitly tells TS to include @types/node. Minimal, surgical change — no other @types/* devDependencies exist, so this doesn't exclude anything. Also picks up `npm audit fix` for brace-expansion (transitive, moderate severity GHSA-f886-m6hf-6m8v / GHSA-jxxr-4gwj-5jf2) so the audit gate passes once the build step is unblocked. Local verification (Node 22): - npm run build: clean - npm test: 93/93 pass - npm audit --audit-level=moderate: 0 vulnerabilities - npm pack --dry-run: 57 files, 823.5 kB Co-Authored-By: Claude Opus 4.7 (1M context) --- package-lock.json | 6 +++--- tsconfig.json | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index a6f5396..45b4ae1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -122,9 +122,9 @@ } }, "node_modules/brace-expansion": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.4.tgz", - "integrity": "sha512-h+DEnpVvxmfVefa4jFbCf5HdH5YMDXRsmKflpf1pILZWRFlTbJpxeU55nJl4Smt5HQaGzg1o6RHFPJaOqnmBDg==", + "version": "5.0.6", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.6.tgz", + "integrity": "sha512-kLpxurY4Z4r9sgMsyG0Z9uzsBlgiU/EFKhj/h91/8yHu0edo7XuixOIH3VcJ8kkxs6/jPzoI6U9Vj3WqbMQ94g==", "dev": true, "license": "MIT", "dependencies": { diff --git a/tsconfig.json b/tsconfig.json index 0a63ae0..903ca58 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,7 +10,8 @@ "skipLibCheck": true, "forceConsistentCasingInFileNames": true, "declaration": true, - "sourceMap": false + "sourceMap": false, + "types": ["node"] }, "include": ["src/**/*.ts"], "exclude": ["node_modules", "dist"]