Skip to content

TypeScript: Remove emitDeclarationOnly property from tsconfig dev config - #81818

Closed
im3dabasia wants to merge 1 commit into
WordPress:trunkfrom
im3dabasia:fix/remove-redundant-emit-declaration-only
Closed

im3dabasia wants to merge 1 commit into
WordPress:trunkfrom
im3dabasia:fix/remove-redundant-emit-declaration-only

Conversation

@im3dabasia

@im3dabasia im3dabasia commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

What?

Part of: #81473
Related comment: #81499 (comment)

Removes the redundant emitDeclarationOnly: false override from tsconfig.dev.base.json.

Why?

noEmit: true in the same compilerOptions block already suppresses all output, so the inherited emitDeclarationOnly: true from tsconfig.base.json can never take effect. The override is dead weight.

Testing Instructions

  1. npm run typecheck on this branch, then re-add the line and run it again (delete packages/*/tsconfig.tsbuildinfo between runs so nothing is cached).
  2. Confirm the error output is identical and no .d.ts files appear in any package's build-types from the dev projects.

N/A. Verified by comparing npm run typecheck output, both runs from a wiped tsbuildinfo state:

Errors Exit
With emitDeclarationOnly: false 0 0
Without it 0 0

Use of AI Tools

Claude Code

@im3dabasia im3dabasia self-assigned this Aug 19, 2026
@im3dabasia im3dabasia added the [Type] Code Quality Issues or PRs that relate to code quality label Aug 19, 2026
@im3dabasia im3dabasia changed the title chore: Remove redudant property from dev file TypeScript: Remove redudant property from tsconfig dev config Aug 19, 2026
@im3dabasia im3dabasia changed the title TypeScript: Remove redudant property from tsconfig dev config TypeScript: RemoveemitDeclarationOnly property from tsconfig dev config Aug 19, 2026
@im3dabasia im3dabasia changed the title TypeScript: RemoveemitDeclarationOnly property from tsconfig dev config TypeScript: Remove emitDeclarationOnly property from tsconfig dev config Aug 19, 2026
@manzoorwanijk

Copy link
Copy Markdown
Member

See #81499 (comment)

@github-actions

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: im3dabasia <im3dabasia1@git.wordpress.org>
Co-authored-by: manzoorwanijk <manzoorwanijk@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@ciampo
ciampo requested a review from sirreal August 19, 2026 15:39
@sirreal

sirreal commented Aug 20, 2026

Copy link
Copy Markdown
Member

Thanks for the attention to detail here @im3dabasia ❤️

However, in this case let's follow @manzoorwanijk's preference as described in #81499 (comment).

@sirreal sirreal closed this Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Code Quality Issues or PRs that relate to code quality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants