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

chore(codegen): adopt checked dependency imports for TypeScriptWriter #6000

Merged
merged 7 commits into from
Apr 12, 2024

Conversation

kuhe
Copy link
Contributor

@kuhe kuhe commented Apr 12, 2024

Issue

smithy-lang/smithy-typescript#1239

Description

This takes on the Smithy TS PR linked above. Now TypeScriptWriter::addImport is checked and will throw when called for a dependency that hasn't been registered.

This prevents a class of repeated developer errors where a dependency is being used but is not registered in package.json.

  • CI passing
  • run e2e

@kuhe kuhe requested a review from a team as a code owner April 12, 2024 19:03
@trivikr trivikr changed the title chore(codegen): adopt checked dependency imports for TypeScriptWriter. chore(codegen): adopt checked dependency imports for TypeScriptWriter Apr 12, 2024
@trivikr
Copy link
Member

trivikr commented Apr 12, 2024

The CheckStyle error for line length needs fix

Error: eckstyle] [ERROR] /home/runner/work/aws-sdk-js-v3/aws-sdk-js-v3/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddDocumentClientPlugin.java:130: Line is longer than 120 characters (found 133). [LineLength]

@kuhe kuhe merged commit 0ad6f05 into aws:main Apr 12, 2024
5 checks passed
@kuhe kuhe deleted the chore/codegen branch April 12, 2024 20:37
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants