Skip to content

fix: move tsconfig.json to project root - #1021

Merged
avivkeller merged 1 commit into
nodejs:mainfrom
btea:fix/root-tsconfig
Aug 10, 2026
Merged

fix: move tsconfig.json to project root#1021
avivkeller merged 1 commit into
nodejs:mainfrom
btea:fix/root-tsconfig

Conversation

@btea

@btea btea commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

The packages/core/tsconfig.json only covered packages/core/src, leaving packages/react and packages/node-legacy without a TypeScript project context. This caused type errors in their types.d.ts files that reference global types (GeneratorMetadata, Generate, ProcessChunk) declared in packages/core/src/generators/types.d.ts.

A root tsconfig.json with include: ["packages/*/src"] ensures all packages share a single compilation context where the global type declarations are visible everywhere.

image

Description

Validation

Related Issues

Check List

  • I have read the Contributing Guidelines and made commit messages that follow the guideline.
  • I have run node --run test and all tests passed.
  • I have check code formatting with node --run format:check & node --run lint.
  • I've covered new added functionality with unit tests if necessary.

The packages/core/tsconfig.json only covered packages/core/src,
leaving packages/react and packages/node-legacy without a TypeScript
project context. This caused type errors in their types.d.ts files
that reference global types (GeneratorMetadata, Generate, ProcessChunk)
declared in packages/core/src/generators/types.d.ts.

A root tsconfig.json with include: ["packages/*/src"] ensures all
packages share a single compilation context where the global type
declarations are visible everywhere.
@btea
btea requested a review from a team as a code owner August 10, 2026 00:06
@vercel

vercel Bot commented Aug 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
api-docs-tooling Ready Ready Preview Aug 10, 2026 12:07am

Request Review

@codecov

codecov Bot commented Aug 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.39%. Comparing base (43673d1) to head (edb71dc).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1021   +/-   ##
=======================================
  Coverage   89.39%   89.39%           
=======================================
  Files         203      203           
  Lines       18796    18796           
  Branches     1753     1753           
=======================================
  Hits        16803    16803           
  Misses       1986     1986           
  Partials        7        7           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@avivkeller
avivkeller merged commit 6d49b31 into nodejs:main Aug 10, 2026
23 checks passed
@avivkeller

Copy link
Copy Markdown
Member

Fast-tracked for RenderATL

@btea
btea deleted the fix/root-tsconfig branch August 10, 2026 13:40
@ovflowd

ovflowd commented Aug 10, 2026

Copy link
Copy Markdown
Member

Fast-tracked for RenderATL

I don't think RenderATL is a reason for fast-tracking arbitrary PRs... I mean, you could have approved the PR and ask for fast-tracking and we'd give a 👍 but should have at least waited for that imo 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants