#11979: fix: Change rootDir to project root to allow UI compilation
stale
Cluster:
UI Improvements and Fixes
The rootDir: "src" setting conflicts with include: ["src/**/*", "ui/**/*"], preventing TypeScript from compiling files in the ui/ directory. Changed to "." to encompass both directories while maintaining output structure.
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
This PR updates the root TypeScript configuration (`tsconfig.json`) to set `compilerOptions.rootDir` to the repository root (`"."`) instead of `"src"`. With the current `include: ["src/**/*", "ui/**/*"]`, this avoids TypeScript treating `ui/` files as being outside `rootDir`, which can block compilation/typechecking for the UI directory.
No additional code or build logic is modified; this is a configuration-only change affecting how TS computes the common source root for included files.
<h3>Confidence Score: 5/5</h3>
- This PR is safe to merge with minimal risk.
- Single-line tsconfig change that aligns `rootDir` with the existing `include` patterns and is unlikely to affect outputs since the base config has `noEmit: true`. Related extending configs either inherit safely or override `rootDir` explicitly.
- No files require special attention
<!-- greptile_other_comments_section -->
<sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub>
<!-- /greptile_comment -->
Most Similar PRs
#9628: fix: resolve tsconfig rootDir errors by separating UI config (AI-as...
by KGBos · 2026-02-05
85.1%
#21027: fix(tests): resolve TypeScript type errors in CLI test files
by kittipond2365 · 2026-02-19
75.9%
#13848: fix(test): normalize paths in source-display test for windows
by gengmao · 2026-02-11
75.1%
#3978: refactor: changing nested ternaries to a switch statement
by watercubz · 2026-01-29
74.5%
#11951: Prepending Windows Node to PATH didn’t help
by tranhoangtu-it · 2026-02-08
74.5%
#8342: Fix debug interface CSS layout issues
by Klopib · 2026-02-03
74.5%
#11048: fix: address repository issues (env, author, CI comments, security ...
by cavula · 2026-02-07
73.8%
#13838: UI: fix config panel CI failures and modularize rendering
by fresed05 · 2026-02-11
73.8%
#8988: fix: resolve security vulnerabilities in dependencies
by fotorpics · 2026-02-04
73.6%
#7824: fix(ui): remove --prod install flag that causes vite not found error
by adityarao3 · 2026-02-03
73.6%