Skip to content

Commit

Permalink
(fix): Deduplicate style file name alone with component file name (#881)
Browse files Browse the repository at this point in the history
  • Loading branch information
JayaKrishnaNamburu authored Jan 10, 2024
1 parent dfa1dfa commit 683d03b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/teleport-project-generator/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ const deduplicateComponentOutputOptions = (

if (fileNameSuffix > 0) {
options.fileName = appendSuffix(options.fileName, fileNameSuffix)
options.styleFileName = appendSuffix(options.styleFileName, fileNameSuffix)
options.templateFileName = appendSuffix(options.templateFileName, fileNameSuffix)
console.warn(
`Potential duplication solved by appending a '${fileNameSuffix}' to the file name: ${options.fileName}`
Expand Down

0 comments on commit 683d03b

Please sign in to comment.