Skip to content

Commit 54d13ea

Browse files
committed
fix: fix incorrect conditions for example
1 parent fa52603 commit 54d13ea

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@
2626
"!**/.*"
2727
],
2828
"scripts": {
29-
<% if (example !== 'none') { -%>
29+
<% if (example) { -%>
3030
"example": "yarn workspace <%- project.slug -%>-example",
3131
<% } -%>
3232
"test": "jest",
3333
"typecheck": "tsc --noEmit",
3434
"lint": "eslint \"**/*.{js,ts,tsx}\"",
35-
<% if (example === 'native') { -%>
35+
<% if (example !== 'expo') { -%>
3636
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
3737
<% } else { -%>
3838
"clean": "del-cli lib",
@@ -76,7 +76,7 @@
7676
"react-native": "0.73.0",
7777
"react-native-builder-bob": "^<%- bob.version %>",
7878
"release-it": "^15.0.0",
79-
<% if (example === 'native') { -%>
79+
<% if (example !== 'expo') { -%>
8080
"turbo": "^1.10.7",
8181
<% } -%>
8282
"typescript": "^5.2.2"
@@ -88,7 +88,7 @@
8888
"react": "*",
8989
"react-native": "*"
9090
},
91-
<% if (example !== 'none') { -%>
91+
<% if (example) { -%>
9292
"workspaces": [
9393
"example"
9494
],

packages/create-react-native-library/templates/native-common-example/turbo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://turbo.build/schema.json",
33
"pipeline": {
4-
<% if (example === 'native') { -%>
4+
<% if (example !== 'expo') { -%>
55
"build:android": {
66
"inputs": [
77
"package.json",

0 commit comments

Comments
 (0)