Skip to content

Commit 42811a2

Browse files
committed
Change tsconfig so that it works with no generated files
1 parent 84adeec commit 42811a2

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

apps/bare-expo/android/app/build.gradle

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,12 @@ android {
139139
androidResources {
140140
ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:!CVS:!thumbs.db:!picasa.ini:!*~'
141141
}
142-
sourceSets {
143-
main {
144-
java {
145-
srcDirs += [file('build/local/modules/').absolutePath]
142+
if (project.properties["expo.localModules.enabled"] == "true") {
143+
sourceSets {
144+
main {
145+
java {
146+
srcDirs += [file('build/local/modules/').absolutePath]
147+
}
146148
}
147149
}
148150
}

apps/sandbox/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
},
1010
"dependencies": {
1111
"@react-navigation/native": "^7.1.6",
12-
"expo": "~54.0.0-preview.2",
13-
"expo-linking": "~8.0.2",
14-
"expo-splash-screen": "~31.0.2",
12+
"expo": "~54.0.8",
13+
"expo-linking": "~8.0.8",
14+
"expo-splash-screen": "~31.0.10",
1515
"react": "19.1.0",
1616
"react-native": "0.81.4",
1717
"react-native-safe-area-context": "5.6.0",

packages/expo/localModules.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
declare module '*.module';
2+
declare module '*.view';

packages/expo/tsconfig.base.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"target": "ESNext",
1818
"rootDirs": ["${configDir}", "${configDir}/.expo/localModules/types"]
1919
},
20-
20+
"include": ["${configDir}"],
21+
"files": ["./localModules.d.ts"],
2122
"exclude": ["node_modules", "babel.config.js", "metro.config.js", "jest.config.js"]
2223
}

0 commit comments

Comments
 (0)