Skip to content

Commit 5f4030a

Browse files
authored
build: keep JSDoc in the published type declarations (#6219)
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.
1 parent ac18825 commit 5f4030a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"test-watch": "node ./dev/tsc-to-vitest-watch.js",
3030
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
3131
"prettier": "prettier --write ./lib/**/*{.ts,.d.ts} ./test/**/*{.ts,.d.ts}",
32-
"build.release": "npm run clean.build && tsc -p tsconfig.release.json && node scripts/generate-test-deps.js && node scripts/copy-assets.js --release && node scripts/set-ga-id.js live --dir dist && node scripts/set-ga-id.js verify --dir dist",
32+
"build.release": "npm run clean.build && tsc -p tsconfig.release.json && tsc -p tsconfig.release.json --emitDeclarationOnly --removeComments false && node scripts/generate-test-deps.js && node scripts/copy-assets.js --release && node scripts/set-ga-id.js live --dir dist && node scripts/set-ga-id.js verify --dir dist",
3333
"pack.release": "npm run build.release && npm pack ./dist"
3434
},
3535
"repository": {

0 commit comments

Comments
 (0)