Repository navigation
build: keep JSDoc in the published type declarations - #6219
Conversation
removeComments applies to every output of a compile, so the release build also stripped JSDoc from the generated declarations, including each @deprecated tag. Editors showed no deprecation warnings to extension and hook authors. Emit the declarations again with comments kept. The JavaScript output is unchanged.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
PR Checklist
I have read the CLA and I hereby sign the CLA).What is the current behavior?
tsconfig.release.jsonsetsremoveComments: true, which applies to the generated.d.tsfiles as well as the JavaScript. The published declarations therefore carry no JSDoc: API docs are missing on hover, and@deprecatedtags written in.tssources never reach extension and hook authors. Only the hand-written.d.tsfiles, which are copied as they are, keep theirs.What is the new behavior?
build.releaseruns a second, declarations-only compile with comments kept. It overwrites the.d.tsfiles and leaves the JavaScript alone.Comparing the
npm run pack.releasetarballs before and after:@deprecatedin shipped.d.tsfiles.d.tsSeparately, the TypeScript language service was run on a sample consumer against the compiled output, built with and without the second pass. Without it nothing is flagged; with it
Yok,Yok.resolve,ProjectData.projectIdandErrors.failWithoutHelpare reported as deprecated.No automated test is included: the change only affects the release build, which the test suite does not run.
Summary by CodeRabbit