-
-
Notifications
You must be signed in to change notification settings - Fork 590
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(typescript): fix declaration file generation for single file outp…
…uts (#1201) Previously, type declaration files were only emitted if outputOptions.dir was used and not outputOptions.file or, as a side effect, if the tsconfig file was specified via a qualified path. This commit fixes that, such that types are also emitted for single file builds.
- Loading branch information
Showing
3 changed files
with
31 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5f78173
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this broke our build! it might break others as well.
we had indeed
typescript({ tsconfig: './tsconfig.json' })
, andthis was the error we got:
[!] Error: Could not resolve entry module (dist/esm/types/index.d.ts).
5f78173
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not a helpful comment. If there is a bug, please open a new bug issue and provide a reproduction given the instructions in the issue template.
5f78173
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I recommend use 8.3.3