Skip to content

Commit

Permalink
chore: fix config export lint error (#285)
Browse files Browse the repository at this point in the history
* chore: fix config export lint error

* chore: cleanup draft code

* chore: changeset

---------

Co-authored-by: MJ☔ <[email protected]>
  • Loading branch information
0618 and zhamujun authored Sep 25, 2023
1 parent b48dae8 commit e0e1488
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/warm-sloths-care.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@aws-amplify/client-config': patch
---

fix config export lint error
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ export class ClientConfigWriter {
switch (fileExtension) {
case '.ts':
case '.js': {
const fileContent = `export default ${JSON.stringify(
const fileContent = `const amplifyConfig = ${JSON.stringify(
clientConfig,
null,
2
)}${os.EOL}`;
)}${os.EOL}export default amplifyConfig;${os.EOL}
`;
await fsp.writeFile(targetPath, fileContent);
break;
}
Expand Down

0 comments on commit e0e1488

Please sign in to comment.