Skip to content

Commit

Permalink
Only format while which include AWS SDK for JavaScript (#703)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr committed Nov 11, 2023
1 parent a2ee528 commit fb13fcc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tame-bugs-cross.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"aws-sdk-js-codemod": patch
---

Only format while which include AWS SDK for JavaScript
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
const env = {...process.env, ...this.config.env || {}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
const env = {...process.env, ...this.config.env || {}}
2 changes: 1 addition & 1 deletion src/transforms/v2-to-v3/transformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const transformer = async (file: FileInfo, api: API) => {
const v2ClientNamesRecord = getClientNamesRecord(j, source, importType);

if (!v2GlobalName && Object.keys(v2ClientNamesRecord).length === 0) {
return source.toSource();
return file.source;
}

if (v2GlobalName) {
Expand Down

0 comments on commit fb13fcc

Please sign in to comment.