Skip to content

Commit

Permalink
fix: change utils file to js (#1126)
Browse files Browse the repository at this point in the history
Co-authored-by: Justin Shih <[email protected]>
  • Loading branch information
Jshhhh and Justin Shih authored Oct 25, 2023
1 parent 0cfef0f commit 4507dde
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import { EOL } from 'os';
import { EmitHint } from 'typescript';
import { StudioTemplateRenderer } from '@aws-amplify/codegen-ui';
import { ReactRenderConfig, scriptKindToFileExtension } from './react-render-config';
import { ReactRenderConfig, scriptKindToFileExtensionNonReact } from './react-render-config';
import { ImportCollection, ImportValue } from './imports';
import { ReactOutputManager } from './react-output-manager';
import { transpile, buildPrinter, defaultRenderConfig } from './react-studio-template-renderer-helper';
Expand Down Expand Up @@ -73,7 +73,7 @@ export class ReactUtilsStudioTemplateRenderer extends StudioTemplateRenderer<
...renderConfig,
renderTypeDeclarations: false, // Never render type declarations for index.js|ts file.
};
this.fileName = `utils.${scriptKindToFileExtension(this.renderConfig.script)}`;
this.fileName = `utils.${scriptKindToFileExtensionNonReact(this.renderConfig.script)}`;
}

renderComponentInternal() {
Expand Down

0 comments on commit 4507dde

Please sign in to comment.