Post-build validation of typescript files #31554
mrginglymus
started this conversation in
Ideas
Replies: 1 comment
-
Possibly fixed by #31555 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe.
In #31527, I observed tsup generating malformed typescript definitions.
This is a known risk of using tsup - they recommend testing the output with either
tsc
or@arethetypeswrong/cli
after generation.Describe the solution you'd like
A post-bundle validation step that type-checks generated .d.ts files.
In theory this could be done with a tsconfig file that looks something like:
However! In order to test definition files, it requires skipLibCheck to be
false
. This will precipitate a whole bunch of unrelated errors in downstream packages that have invalid or incompatible types.Describe alternatives you've considered
No response
Are you able to assist to bring the feature to reality?
yes, I can
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions