Skip to content
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

fix: emit declarations and lib via tsc #76

Merged
merged 1 commit into from
Dec 29, 2023
Merged

Conversation

43081j
Copy link
Contributor

@43081j 43081j commented Dec 29, 2023

This changes from using esbuild to emit library code, and instead uses typescript itself.

We don't currently ship type declarations since esbuild will not output them.

@keithamus @koddsson can we do this? i feel like we must've had a reason in the past to use esbuild, would be good to know what that was

right now we don't produce (or ship) declarations, which is what this will fix

This changes from using esbuild to emit library code, and instead uses
typescript itself.

We don't currently ship type declarations since esbuild will not output
them.
@koddsson
Copy link
Member

Seems good to me. Not sure why we wouldn't just use the TypeScript compiler. Is there any significant difference between the generated outputs?

Copy link
Member

@keithamus keithamus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@43081j
Copy link
Contributor Author

43081j commented Dec 29, 2023

Seems good to me. Not sure why we wouldn't just use the TypeScript compiler. Is there any significant difference between the generated outputs?

seems to be near enough the same, if not better

i noticed esbuild produces export { foo as default } whereas typescript just naturally produces export default foo ...

think we should be ok to merge this

@keithamus keithamus merged commit e732123 into chaijs:main Dec 29, 2023
6 checks passed
@keithamus
Copy link
Member

v3.0.2

@43081j 43081j deleted the types branch December 30, 2023 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants