From d3a789a743e12079e9b84ecd417f846c93ad9280 Mon Sep 17 00:00:00 2001 From: Daniel Grefberg Date: Sat, 8 Jul 2023 14:40:49 +0200 Subject: [PATCH] chore: exclude __mocks__ dir from build --- tsconfig.build.json | 7 +++++-- tsconfig.json | 6 +----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/tsconfig.build.json b/tsconfig.build.json index 0788dc6..a919e3b 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -1,7 +1,8 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "types": ["node"] + "types": ["node"], + "rootDir": "src" }, "exclude": [ "**/lib/**", @@ -9,6 +10,8 @@ "**/__snapshots__/**", "**/__fixtures__/**", "**/__tests__/**", - "**/*.test.*" + "**/__test__/**", + "**/__mocks__/**", + "**/*.test.*", ] } diff --git a/tsconfig.json b/tsconfig.json index df932d2..5f8f3d1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,7 +3,6 @@ "target": "es2018", "module": "commonjs", "lib": ["es2018"], - "rootDir": "src", "outDir": "lib", "tsBuildInfoFile": "lib/.tsbuildinfo", "esModuleInterop": true, @@ -18,8 +17,5 @@ "removeComments": true }, "include": ["src", "__mocks__", "src/__test__"], - "exclude": [ - "**/lib/**", - "**/node_modules/**" - ] + "exclude": ["**/lib/**", "**/node_modules/**"] }