From 2011152ab2bf62b9355fcb30e88e33c184a4364b Mon Sep 17 00:00:00 2001 From: slawek Date: Tue, 3 Dec 2024 14:07:30 +0100 Subject: [PATCH] chore: improve prepare config --- package.json | 6 ++++++ tsconfig.build.json | 10 +++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f255689..bf15d7d 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "!android/gradlew.bat", "!android/local.properties", "!**/*.test.ts", + "!**/*.test.tsx", "!**/__tests__", "!**/__fixtures__", "!**/__mocks__", @@ -112,6 +113,11 @@ "packageManager": "yarn@3.6.1", "react-native-builder-bob": { "source": "src", + "exclude": [ + "**/{__tests__,__fixtures__,__mocks__}/**", + "**/*.test.ts", + "**/*.test.tsx" + ], "output": "lib", "targets": [ [ diff --git a/tsconfig.build.json b/tsconfig.build.json index 867e053..2b1fed3 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -1,4 +1,12 @@ { "extends": "./tsconfig", - "exclude": ["example", "expoExample", "sharedExample", "lib"] + "exclude": [ + "example", + "expoExample", + "sharedExample", + "lib", + "jest-setup.ts", + "src/**/*.test.ts", + "src/**/*.test.tsx" + ] }