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

Add ability to ts-ignore a default import #445

Merged
merged 1 commit into from
Oct 6, 2021

Conversation

adamthom-amzn
Copy link
Contributor

Description of changes:
When importing package.json outside srcDir, TypeScript will fail checks even
though compiled JS will work fine. Annotating the import with @ts-ignore,
and using eslint-disable-line to prevent import reordering from separating
the ts-ignore comment from the line being ignored, allows us to suppress these
errors without reorganizing the generated module and without postprocessing
the generator output.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@adamthom-amzn adamthom-amzn requested review from JordonPhillips, gosar and a team October 6, 2021 16:53
When importing package.json outside srcDir, TypeScript will fail checks even
though compiled JS will work fine. Annotating the import with @ts-ignore,
and using eslint-disable-line to prevent import reordering from separating
the ts-ignore comment from the line being ignored, allows us to suppress these
errors without reorganizing the generated module and without postprocessing
the generator output.
@adamthom-amzn adamthom-amzn merged commit 5c5e716 into smithy-lang:main Oct 6, 2021
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