Skip to content

Commit 6e02b32

Browse files
committed
fix: exclude example when building for publishing
1 parent e7a3f32 commit 6e02b32

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

templates/common/$package.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,15 @@
133133
"@react-native-community/bob": {
134134
"source": "src",
135135
"output": "lib",
136-
"targets": ["commonjs", "module", "typescript"]
136+
"targets": [
137+
"commonjs",
138+
"module",
139+
[
140+
"typescript",
141+
{
142+
"project": "tsconfig.build.json"
143+
}
144+
]
145+
]
137146
}
138147
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
{
3+
"extends": "./tsconfig",
4+
"exclude": ["example"]
5+
}

0 commit comments

Comments
 (0)