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 <amp@ampcode.com>
This commit is contained in:
Alexander Brown
2026-01-31 16:54:21 -08:00
parent 9cbba233aa
commit fdbbddaf62
2 changed files with 2 additions and 2 deletions

View File

@@ -7,5 +7,5 @@
"noUnusedParameters": true, "noUnusedParameters": true,
"resolveJsonModule": true "resolveJsonModule": true
}, },
"include": ["**/*.ts"] "include": ["**/*.ts", "../src/types/**/*.d.ts", "../global.d.ts"]
} }

View File

@@ -47,7 +47,7 @@
"test:browser:local": "cross-env PLAYWRIGHT_LOCAL=1 pnpm test:browser", "test:browser:local": "cross-env PLAYWRIGHT_LOCAL=1 pnpm test:browser",
"test:unit": "nx run test", "test:unit": "nx run test",
"typecheck": "vue-tsc --noEmit", "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", "typecheck:desktop": "nx run @comfyorg/desktop-ui:typecheck",
"zipdist": "node scripts/zipdist.js", "zipdist": "node scripts/zipdist.js",
"clean": "nx reset" "clean": "nx reset"