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" + ] }