Skip to content

feat: add strict declaration generation checks - #879

Merged
fireairforce merged 1 commit into
masterfrom
zoomdong/dts-fail-on-error
Nov 21, 2026
Merged

fireairforce merged 1 commit into
masterfrom
zoomdong/dts-fail-on-error

Conversation

@fireairforce

Copy link
Copy Markdown
Member

Summary

  • Add the opt-in dts.failOnError option for ESM and CJS builds. Existing configurations keep their current behavior.
  • Fail the build when a scheduled declaration is missing or when noEmitOnError blocks declaration generation. Report the blocking TypeScript diagnostics even when a previous build populated the declaration cache.
  • Document the option and add CLI regression tests for configuration inheritance, cached builds, noEmit, and missing tsgo output.

Verification

  • pnpm build
  • pnpm exec jest --maxWorkers=2 --forceExit --silent (199 tests passed)
  • pnpm exec jest --runInBand --forceExit --runTestsByPath tests/dts-build.test.ts (8 tests passed)

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-21T11:51:53.845271Z b81aebc PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@fireairforce
fireairforce merged commit 603cbea into master Nov 21, 2026
7 checks passed
@fireairforce
fireairforce deleted the zoomdong/dts-fail-on-error branch November 21, 2026 12:21
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.

1 participant