|
@@ -7,10 +7,19 @@ function installNavigation() {
|
7
|
7
|
shellUtils.exec.execSync(`rm ../${navigationTar}`);
|
8
|
8
|
}
|
9
|
9
|
|
10
|
|
-function run() {
|
|
10
|
+function copyNodeModulesFromNavigation() {
|
11
|
11
|
shellUtils.exec.execSync(`cp -rf ../node_modules ./`);
|
12
|
|
- shellUtils.exec.execSync(`./scripts/ignoreReactWarnings.rb`);
|
|
12
|
+}
|
|
13
|
+
|
|
14
|
+function run() {
|
|
15
|
+ exec.execSyncSilent(`hardlink ./node_modules/react-native-navigation/ -u || true`);
|
|
16
|
+ exec.execSyncSilent(`rm -rf ./node_modules || true`);
|
|
17
|
+ copyNodeModulesFromNavigation();
|
13
|
18
|
installNavigation();
|
|
19
|
+ shellUtils.exec.execSync(`./scripts/ignoreReactWarnings.rb`);
|
|
20
|
+ if (!process.env.CI) {
|
|
21
|
+ exec.execSyncSilent(`hardlink ../ ./node_modules/react-native-navigation/ || true`);
|
|
22
|
+ }
|
14
|
23
|
}
|
15
|
24
|
|
16
|
25
|
run();
|