Skip to content

Commit

Permalink
Remove .ts when generating .ts components
Browse files Browse the repository at this point in the history
  • Loading branch information
Windvis committed Oct 5, 2024
1 parent a0dba08 commit bdf2e75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blueprints/component/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ module.exports = {

normalizeEntityName(entityName) {
return normalizeEntityName(
entityName.replace(/\.js$/, '') //Prevent generation of ".js.js" files
entityName.replace(/\.(js|ts)$/, '') //Prevent generation of ".js.js" and ".ts.ts" files
);
},

Expand Down

0 comments on commit bdf2e75

Please sign in to comment.