Skip to content

chore(builds): skip typecheck for cjs/es artifacts #1581

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

Merged
merged 2 commits into from
May 6, 2025

Conversation

kuhe
Copy link
Contributor

@kuhe kuhe commented May 5, 2025

Type checking is not necessary for the CJS and ES build configurations.

This is because the dist-types build checks all types, including code inside functions that do not appear in the API type declarations. I have verified this.

Skipping type checks will improve build times and avoid redundant compilation errors printed to the console. Because all 3 dist builds run concurrently in the "build" scripts of packages, any existing type error is printed to the console 3 times in interleaved lines, resulting in a hard to read output.

savings in CI:
build packages step ~6m40s -> ~4m42s

@kuhe kuhe force-pushed the chore/build-typecheck branch from 6a92784 to 0728336 Compare May 6, 2025 15:03
@kuhe kuhe merged commit 9fdaf20 into smithy-lang:main May 6, 2025
10 checks passed
@kuhe kuhe deleted the chore/build-typecheck branch May 6, 2025 16:28
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.

2 participants