From 70fc841ea31ecd9dcad817227d79e28ce173fc26 Mon Sep 17 00:00:00 2001 From: Sam Van Campenhout Date: Sat, 5 Oct 2024 14:52:00 +0200 Subject: [PATCH] Remove `.ts` when generating .ts components --- blueprints/component/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blueprints/component/index.js b/blueprints/component/index.js index fffa4961bea..2df6b4f61dd 100644 --- a/blueprints/component/index.js +++ b/blueprints/component/index.js @@ -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 ); },