From fdbbddaf62060daad9a2e39b3553ebd9d56a92bd Mon Sep 17 00:00:00 2001 From: Alexander Brown <448862+DrJKL@users.noreply.github.com> Date: Sat, 31 Jan 2026 16:54:21 -0800 Subject: [PATCH] fix: include type augmentation files in browser_tests tsconfig - Add src/types/**/*.d.ts and global.d.ts to include array - Use vue-tsc for typecheck:browser to match main typecheck - Fixes ~160 src/ type errors in browser test compilation Amp-Thread-ID: https://ampcode.com/threads/T-019c16af-3867-74d9-9242-e3fa8e17947e Co-authored-by: Amp --- browser_tests/tsconfig.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/browser_tests/tsconfig.json b/browser_tests/tsconfig.json index 46e5a9bcd..ec0525e3b 100644 --- a/browser_tests/tsconfig.json +++ b/browser_tests/tsconfig.json @@ -7,5 +7,5 @@ "noUnusedParameters": true, "resolveJsonModule": true }, - "include": ["**/*.ts"] + "include": ["**/*.ts", "../src/types/**/*.d.ts", "../global.d.ts"] } diff --git a/package.json b/package.json index ade16ba48..45c1e2d12 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "test:browser:local": "cross-env PLAYWRIGHT_LOCAL=1 pnpm test:browser", "test:unit": "nx run test", "typecheck": "vue-tsc --noEmit", - "typecheck:browser": "tsc --project browser_tests/tsconfig.json", + "typecheck:browser": "vue-tsc --project browser_tests/tsconfig.json", "typecheck:desktop": "nx run @comfyorg/desktop-ui:typecheck", "zipdist": "node scripts/zipdist.js", "clean": "nx reset"