Skip to content

Commit

Permalink
fix: error when running make prepublish for the second time (#15119)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxingbaoyu committed Nov 2, 2022
1 parent 53185ea commit 118a3b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions Makefile.source.mjs
Expand Up @@ -288,6 +288,8 @@ target["prepublish-prepare-dts"] = function () {
target["tscheck"] = function () {
target["generate-tsconfig"]();

// ts doesn't generate declaration files after we remove the output directory by manually when incremental==true
shell.rm("-rf", "tsconfig.tsbuildinfo");
shell.rm("-rf", "dts");
yarn(["tsc", "-b", "."]);
};
Expand Down

0 comments on commit 118a3b0

Please sign in to comment.