From c8db2e2032f051ad50c7cb92a721246bd84f067a Mon Sep 17 00:00:00 2001 From: Tom French Date: Sat, 24 Apr 2021 13:25:24 +0100 Subject: [PATCH 1/2] build: remove test files from build outputs --- packages/safe-apps-sdk/tsconfig.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/safe-apps-sdk/tsconfig.json b/packages/safe-apps-sdk/tsconfig.json index 6a62dbc4..8c4b2725 100644 --- a/packages/safe-apps-sdk/tsconfig.json +++ b/packages/safe-apps-sdk/tsconfig.json @@ -3,5 +3,6 @@ "compilerOptions": { "outDir": "./dist" }, - "include": ["./src"] + "include": ["./src"], + "exclude": ["./src/**/*.test.ts"] } From c51d9770303685fa38497990885b25b82f814f61 Mon Sep 17 00:00:00 2001 From: Tom French Date: Mon, 26 Apr 2021 14:50:09 +0100 Subject: [PATCH 2/2] build: move exception for test files up to root tsconfig.json --- packages/safe-apps-sdk/tsconfig.json | 3 +-- tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/safe-apps-sdk/tsconfig.json b/packages/safe-apps-sdk/tsconfig.json index 8c4b2725..6a62dbc4 100644 --- a/packages/safe-apps-sdk/tsconfig.json +++ b/packages/safe-apps-sdk/tsconfig.json @@ -3,6 +3,5 @@ "compilerOptions": { "outDir": "./dist" }, - "include": ["./src"], - "exclude": ["./src/**/*.test.ts"] + "include": ["./src"] } diff --git a/tsconfig.json b/tsconfig.json index 2be99926..940302ab 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -18,5 +18,5 @@ "resolveJsonModule": true, "jsx": "react-jsx" }, - "exclude": ["dist", "node_modules"] + "exclude": ["dist", "node_modules", "./**/*.test.ts"] }