Skip to content

Split TypeScript configs for app, tests, and Node-side tooling#103

Merged
d-oit merged 2 commits intomainfrom
split-tsconfig-configs-1520440758500423346
May 4, 2026
Merged

Split TypeScript configs for app, tests, and Node-side tooling#103
d-oit merged 2 commits intomainfrom
split-tsconfig-configs-1520440758500423346

Conversation

@d-oit
Copy link
Copy Markdown
Owner

@d-oit d-oit commented May 4, 2026

Split the monolithic tsconfig.json into specialized configurations for the browser application, testing code, and Node-side tooling (CLI, scripts, and configs). This separation ensures that each execution context uses appropriate compiler settings and types, reducing incidental coupling and making type errors more meaningful.

The root tsconfig.json now serves as a project orchestrator using Project References. ESLint has been updated to support these multiple projects, enabling type-aware linting for previously ignored areas like the cli/ directory.

Build and typecheck scripts were updated to align with the new structure. All verification steps (build, lint, tests) were successfully executed to ensure no regressions were introduced.

Fixes #98


PR created automatically by Jules for task 1520440758500423346 started by @d-oit

- Extracted shared compiler options into `tsconfig.base.json`.
- Created specialized configurations: `tsconfig.app.json`, `tsconfig.node.json`, and `tsconfig.test.json`.
- Refactored the root `tsconfig.json` to use TypeScript Project References.
- Updated `eslint.config.js` to use the new project-specific configurations for type-aware linting.
- Enabled linting for `cli/` and configuration files by removing them from ignores and assigning them to `tsconfig.node.json`.
- Updated `package.json` scripts: `build` now uses `tsconfig.app.json` for type checking, and `typecheck` uses `tsc -b` to check the entire project.
- Verified changes with `npm run build`, `npm run typecheck`, `npm run lint`, and both unit and E2E tests.

Co-authored-by: d-oit <6849456+d-oit@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@deepsource-io
Copy link
Copy Markdown

deepsource-io Bot commented May 4, 2026

DeepSource Code Review

We reviewed changes in 56a3b31...8ea822f on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.

See full review on DeepSource ↗

PR Report Card

Overall Grade   Security  

Reliability  

Complexity  

Hygiene  

Code Review Summary

Analyzer Status Updated (UTC) Details
JavaScript May 4, 2026 5:56p.m. Review ↗
Python May 4, 2026 5:56p.m. Review ↗
Shell May 4, 2026 5:56p.m. Review ↗
SQL May 4, 2026 5:56p.m. Review ↗

Important

AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.

- Extracted shared compiler options into `tsconfig.base.json`.
- Created specialized configurations: `tsconfig.app.json`, `tsconfig.node.json`, and `tsconfig.test.json`.
- Refactored the root `tsconfig.json` to use TypeScript Project References.
- Updated `eslint.config.js` to use the new project-specific configurations for type-aware linting.
- Enabled linting for `cli/` and configuration files by removing them from ignores and assigning them to `tsconfig.node.json`.
- Fixed a type error in `vitest.config.ts` where coverage thresholds were incorrectly nested.
- Updated `package.json` scripts: `build` now uses `tsconfig.app.json` for type checking, and `typecheck` uses `tsc -b` to check the entire project.
- Verified changes with `npm run build`, `npm run typecheck`, `npm run lint`, and both unit and E2E tests.

Co-authored-by: d-oit <6849456+d-oit@users.noreply.github.com>
@d-oit d-oit marked this pull request as ready for review May 4, 2026 17:57
@d-oit d-oit merged commit cf2ceb3 into main May 4, 2026
21 checks passed
@d-oit d-oit deleted the split-tsconfig-configs-1520440758500423346 branch May 4, 2026 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

config tests Related to automated/manual tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Split TypeScript configs for app, tests, and Node-side tooling

1 participant