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

Simpler builds #630

Merged
merged 15 commits into from
Aug 25, 2019
Merged

Simpler builds #630

merged 15 commits into from
Aug 25, 2019

Conversation

kristoferbaxter
Copy link
Contributor

@kristoferbaxter kristoferbaxter commented Aug 22, 2019

Refactor AVA integration to use the ESM output of TypeScript.

This change lets us only have one tsconfig for each environment, and avoid creating commonjs outputs just for testing.

Why was the previous approach less ideal? Incremental TypeScript compilation doesn't understand the change between output formats. Each time a developer on the project would switch between test and build the result would be cached from the previous build (but now with the wrong output).

With this change, TypeScript is always generating ESM output, and AVA has been configured to use it.

@kristoferbaxter kristoferbaxter merged commit cbc2316 into master Aug 25, 2019
@kristoferbaxter kristoferbaxter deleted the simpler-builds branch August 25, 2019 03:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants