Files
hermes-agent/apps/desktop/tsconfig.e2e.json
ethernet 7f5de1d671 fix(desktop): make renderer tsconfig noEmit structural, not conventional
tsconfig.json had no noEmit option: every caller passed --noEmit on the
CLI (typecheck, scripts/build/desktop.mjs), but one bare `tsc --build
tsconfig.json` emitted 2194 .js twins in-place across src/ and electron/,
and module resolution then preferred those stale .js files over the .ts
sources — tests ran against dead code until the twins were deleted.

Make it structural: noEmit true in the renderer base; the composite
electron/e2e children (which legally emit declarations into
build/electron-types / scratch) opt back out with noEmit false. Verified:
the typecheck trio stays clean, a bare tsc --build of the renderer now
emits nothing, and the electron dev build still produces its
build/electron-types declarations with zero in-place files.
2026-09-18 00:08:06 -04:00

12 lines
346 B
JSON

{
"extends": "./tsconfig.json",
"compilerOptions": {
"types": ["node", "@playwright/test"],
"allowImportingTsExtensions": true,
"composite": true,
"noEmit": false
},
"include": ["e2e", "playwright.config.ts", "../../tests-js/scripts", "../../tests/install/e2e-assets/desktop-smoke.ts"],
"exclude": ["src", "electron"]
}