Skip to content

Commit c69d9b3

Browse files
committed
fix: update turborepo config to exclude built files
1 parent 0d929d9 commit c69d9b3

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

packages/create-react-native-library/templates/common/$package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@
6060
"registry": "https://registry.npmjs.org/"
6161
},
6262
"devDependencies": {
63-
"@evilmartians/lefthook": "^1.2.2",
6463
"@commitlint/config-conventional": "^17.0.2",
64+
"@evilmartians/lefthook": "^1.2.2",
6565
"@react-native-community/eslint-config": "^3.0.2",
6666
"@release-it/conventional-changelog": "^5.0.0",
6767
"@types/jest": "^28.1.2",
@@ -80,7 +80,7 @@
8080
"react-native-builder-bob": "^<%- bob.version %>",
8181
"release-it": "^15.0.0",
8282
<% if (turborepo) { -%>
83-
"turbo": "^1.6.3",
83+
"turbo": "^1.10.7",
8484
<% } -%>
8585
"typescript": "^5.0.2"
8686
},

packages/create-react-native-library/templates/turborepo/turbo.json

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,29 @@
55
"build:android": {
66
"inputs": [
77
"package.json",
8-
"android/**",
9-
"src/**/*.ts",
10-
"src/**/*.tsx",
8+
"android",
9+
"!android/build",
10+
"src/*.ts",
11+
"src/*.tsx",
1112
"example/package.json",
12-
"example/android/**"
13+
"example/android",
14+
"!example/android/.gradle",
15+
"!example/android/build",
16+
"!example/android/app/build"
1317
],
1418
"outputs": []
1519
},
1620
"build:ios": {
1721
"inputs": [
1822
"package.json",
1923
"*.podspec",
20-
"ios/**",
21-
"src/**/*.ts",
22-
"src/**/*.tsx",
24+
"ios",
25+
"src/*.ts",
26+
"src/*.tsx",
2327
"example/package.json",
24-
"example/ios/**"
28+
"example/ios",
29+
"!example/ios/build",
30+
"!example/ios/Pods"
2531
],
2632
"outputs": []
2733
}

0 commit comments

Comments
 (0)