Skip to content

Commit 2011152

Browse files
committed
chore: improve prepare config
1 parent 1b919dc commit 2011152

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"!android/gradlew.bat",
3333
"!android/local.properties",
3434
"!**/*.test.ts",
35+
"!**/*.test.tsx",
3536
"!**/__tests__",
3637
"!**/__fixtures__",
3738
"!**/__mocks__",
@@ -112,6 +113,11 @@
112113
"packageManager": "[email protected]",
113114
"react-native-builder-bob": {
114115
"source": "src",
116+
"exclude": [
117+
"**/{__tests__,__fixtures__,__mocks__}/**",
118+
"**/*.test.ts",
119+
"**/*.test.tsx"
120+
],
115121
"output": "lib",
116122
"targets": [
117123
[

tsconfig.build.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
{
22
"extends": "./tsconfig",
3-
"exclude": ["example", "expoExample", "sharedExample", "lib"]
3+
"exclude": [
4+
"example",
5+
"expoExample",
6+
"sharedExample",
7+
"lib",
8+
"jest-setup.ts",
9+
"src/**/*.test.ts",
10+
"src/**/*.test.tsx"
11+
]
412
}

0 commit comments

Comments
 (0)