Skip to content

Commit ca95a6e

Browse files
committed
exclude all the lib.d.ts files when running the TS extractor directly
e.g. the `lib.es5.d.ts` file was not excluded
1 parent 9b043a1 commit ca95a6e

File tree

1 file changed

+1
-1
lines changed
  • javascript/extractor/lib/typescript/src

1 file changed

+1
-1
lines changed

javascript/extractor/lib/typescript/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@ if (process.argv.length > 2) {
895895
virtualSourceRoot: null,
896896
});
897897
for (let sf of state.project.program.getSourceFiles()) {
898-
if (pathlib.basename(sf.fileName) === "lib.d.ts") continue;
898+
if (/lib\..*\.d\.ts/.test(pathlib.basename(sf.fileName)) || pathlib.basename(sf.fileName) === "lib.d.ts") continue;
899899
handleParseCommand({
900900
command: "parse",
901901
filename: sf.fileName,

0 commit comments

Comments
 (0)