Skip to content

feat: find a headerless declaration's source through the tsconfig - #218

Merged
Shinrai merged 1 commit into
nextfrom
fix/declaration-source-header
Nov 27, 2026
Merged

Shinrai merged 1 commit into
nextfrom
fix/declaration-source-header

Conversation

@cldmv-bot

@cldmv-bot cldmv-bot Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

A declaration tsc emitted without a header takes its source's @Date, @author and @last modified values, found through the tsconfig the declarations were built with (new tsconfig option / --tsconfig). @filename still names the declaration.

Resolves #214

tsc drops a source's header from its declaration when imports follow
the header, so those declarations were stamped as new with the build
time on every build. fix-headers now reads rootDir, outDir and
declarationDir from the tsconfig the declarations were built with
(following extends), finds the source file, and takes the declaration's
@Date, @author and @last modified values from the source's header.
@filename and @project still name the declaration. The tsconfig is the
new tsconfig option (--tsconfig), defaulting to .configs/tsconfig.json
and then tsconfig.json.

Resolves #214
@cldmv-bot cldmv-bot Bot added ! fix → next v4 flow: fix contributor PR targeting the next integration branch type: feature Implements new functionality — a PR or issue that adds a feature area: core Touches core library / runtime source code area: tests Touches test files, fixtures, or test infrastructure type: documentation Relates to docs, README updates, guides, or inline code comments labels Nov 27, 2026
@Shinrai
Shinrai merged commit ffc4e24 into next Nov 27, 2026
37 checks passed
@cldmv-bot
cldmv-bot Bot deleted the fix/declaration-source-header branch November 27, 2026 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: core Touches core library / runtime source code area: tests Touches test files, fixtures, or test infrastructure ! fix → next v4 flow: fix contributor PR targeting the next integration branch type: documentation Relates to docs, README updates, guides, or inline code comments type: feature Implements new functionality — a PR or issue that adds a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant