Skip to content

Commit

Permalink
Update messageTransformer.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
CristiCanizales authored May 23, 2024
1 parent 6489c00 commit 99e5f68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/messageTransformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const messageTransformer = (): ts.TransformerFactory<ts.SourceFile> => {
const transformerFactory: ts.TransformerFactory<ts.SourceFile> = (context) => (sourceFile) => {
if (
// if there are no messages, no transformation is needed
// dummy comment
// dummy comment 2
!sourceFile.statements.some((i) => ts.isImportDeclaration(i) && i.importClause?.getText().includes('Messages')) ||
// don't transform the transformer itself
sourceFile.fileName.includes('messageTransformer.ts')
Expand Down

0 comments on commit 99e5f68

Please sign in to comment.