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: set noEmitHelpers=false #1151

Merged
merged 1 commit into from
Feb 5, 2024
Merged

fix: set noEmitHelpers=false #1151

merged 1 commit into from
Feb 5, 2024

Conversation

kuhe
Copy link
Contributor

@kuhe kuhe commented Feb 3, 2024

This is from an issue that was discovered in JSv3 aws/aws-sdk-js-v3#5752.
There is no effect on the Smithy NPM packages code distributions by this change, since the issue does not apply here.

Explanation

This fix can prevent future issues. The configuration noEmitHelpers=true was copied over from JSv3 a long time ago, but is incorrect. It is only meant to be true when the application provides global implementations of the TS helper functions, but we do not do that. We use importHelpers=true.

At least in our current version of TypeScript, the set of importable helpers does not fully cover the set of emit-able helpers, so with both config fields set to true, there is potential to have some helper functions both unimplemented and unimported.

@kuhe kuhe requested review from a team as code owners February 3, 2024 15:57
@kuhe kuhe requested a review from syall February 3, 2024 15:57
@kuhe kuhe merged commit a985fef into smithy-lang:main Feb 5, 2024
7 checks passed
@kuhe kuhe deleted the fix/tsconfig branch February 5, 2024 15:55
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