From a2f305be3f71896fc4fc7f21920af3ff7db5a886 Mon Sep 17 00:00:00 2001 From: Tiago Yamamoto Date: Mon, 22 Dec 2025 00:35:28 -0300 Subject: [PATCH] fix(marketplace): exclude test files from production build --- marketplace/tsconfig.json | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/marketplace/tsconfig.json b/marketplace/tsconfig.json index 88fac01..410ad68 100644 --- a/marketplace/tsconfig.json +++ b/marketplace/tsconfig.json @@ -2,7 +2,11 @@ "compilerOptions": { "target": "ESNext", "useDefineForClassFields": true, - "lib": ["DOM", "DOM.Iterable", "ESNext"], + "lib": [ + "DOM", + "DOM.Iterable", + "ESNext" + ], "module": "ESNext", "skipLibCheck": true, "moduleResolution": "Bundler", @@ -12,8 +16,23 @@ "noEmit": true, "jsx": "react-jsx", "strict": true, - "types": ["vite/client"] + "types": [ + "vite/client" + ] }, - "include": ["src"], - "references": [{ "path": "./tsconfig.node.json" }] -} + "include": [ + "src" + ], + "exclude": [ + "src/**/*.test.ts", + "src/**/*.test.tsx", + "src/**/*.spec.ts", + "src/**/*.spec.tsx", + "src/test" + ], + "references": [ + { + "path": "./tsconfig.node.json" + } + ] +} \ No newline at end of file