From f3ac5c9e499c019fed7738d0298943c1475790c4 Mon Sep 17 00:00:00 2001 From: Alejandro Lembke Barrientos Date: Wed, 16 Jul 2025 17:50:57 +0000 Subject: [PATCH] PR-342468: miss the Typescript building test validation. --- tsconfig.json | 6 +----- webpack.config.ts | 12 +++++++++++- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 2d69bd3..4af8be2 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -43,10 +43,6 @@ "exclude": [ "node_modules", "dist", - "PRNameGenerator.ts", - "**/*.test.tsx", - "**/*.test.ts", - "**/*.cy.tsx", - "**/*.cy.ts" + "PRNameGenerator.ts" ] } diff --git a/webpack.config.ts b/webpack.config.ts index 9e78170..0f1ae8e 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -47,7 +47,17 @@ export default { { test: /\.(ts|tsx)$/, exclude: [/node_modules/, /\.test\.(ts|tsx)$/, /\.cy\.(ts|tsx)$/], - use: 'ts-loader', + use: { + loader: 'ts-loader', + options: { + onlyCompileBundledFiles: true, + compilerOptions: { + noEmit: false, + declaration: true, + declarationDir: './dist/types' + } + } + }, }, { test: /\.(js|jsx)$/,