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)$/,