From bdf2e75b1ba002db056f35f5c760dc704534c823 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 ); },