-
Notifications
You must be signed in to change notification settings - Fork 77
Build cleanup and output declarations #343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
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.
you need a types in the package.json entry that points at the output declarations and also, declarations don't really need to be flattened.
04d0b57 to
ba49a95
Compare
|
@krisselden should be good to merge. I also wan't to confirm we still actually need |
a2f5fe7 to
7214d35
Compare
| }); | ||
|
|
||
| const compiledDeclarations = typescript('lib', { | ||
| tsconfig: { |
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.
In general we shouldn't need to pass tsconfig here, it should just be able to use our top level tsconfig.json.
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.
If we don't explicitly flag for declaration here and default to tsconfig with declaration: true we will have to cherry-pick out the .d.ts files for tests.
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.
Actually this brings up a good point as to; do we actually need to output tests within dist?
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.
^^^^ @krisselden
tsconfig.json
Outdated
| } | ||
| }, | ||
| "files": [ | ||
| "file": [ |
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 don't grok this change, I didn't think file was an option for tsconfig.json?
Hang tight on review of this PR. Im going to squash the declarations files and expose a
index.d.ts.Spiking this now. TBH there more than likely is an easier way to output generated ts declaration files. Any insight is more than welcome :)