Skip to content

fix: remove root tsconfig fallback and add error handling for package tsconfig resolution#14

Merged
Zih0 merged 3 commits intov0.0.2from
fix/ts-config-resolution
Jan 26, 2026
Merged

fix: remove root tsconfig fallback and add error handling for package tsconfig resolution#14
Zih0 merged 3 commits intov0.0.2from
fix/ts-config-resolution

Conversation

@Zih0
Copy link
Collaborator

@Zih0 Zih0 commented Jan 19, 2026

Problem

When running docflow from the root of a monorepo, if a specific package doesn't have its own tsconfig.json, documentation from other packages would incorrectly be generated under that package's output directory.

SCR-20260119-tjfo

Root Cause

The tsconfig resolution logic was falling back to the root tsconfig.json when a package-level tsconfig was not found.

Since root tsconfig.json in monorepos typically includes all packages in its include field, this caused the documentation generator to process source files from all packages instead of just the target package.

Solution

  • Remove the fallback to root tsconfig.json - each package must have its own tsconfig
  • Add try-catch blocks to handle tsconfig resolution error, allowing other packages to continue processing even if one fails
SCR-20260119-tjqw

@vercel
Copy link

vercel bot commented Jan 19, 2026

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

Project Deployment Review Updated (UTC)
docflow-docs Ready Ready Preview, Comment Jan 19, 2026 1:51pm

Request Review

Copy link

@raon0211 raon0211 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Zih0 Zih0 merged commit c876e1a into v0.0.2 Jan 26, 2026
3 checks passed
@Zih0 Zih0 deleted the fix/ts-config-resolution branch January 26, 2026 04:51
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.

2 participants