|
@@ -5,21 +5,38 @@ function installNavigation() {
|
5
|
5
|
const navigationTar = shellUtils.exec.execSyncRead(`cd .. && npm pack`);
|
6
|
6
|
shellUtils.exec.execSync(`tar -xf ../${navigationTar} -C ./node_modules/react-native-navigation --strip 1`);
|
7
|
7
|
shellUtils.exec.execSync(`rm ../${navigationTar}`);
|
|
8
|
+
|
|
9
|
+ if (!process.env.CI) {
|
|
10
|
+ hardlinkNavigation();
|
|
11
|
+ }
|
8
|
12
|
}
|
9
|
13
|
|
10
|
14
|
function copyNodeModulesFromNavigation() {
|
11
|
15
|
shellUtils.exec.execSync(`cp -rf ../node_modules ./`);
|
12
|
16
|
}
|
13
|
17
|
|
|
18
|
+function removeHardlinks() {
|
|
19
|
+ shellUtils.exec.execSync(`hardlink ./node_modules/react-native-navigation/ -u || true`);
|
|
20
|
+}
|
|
21
|
+
|
|
22
|
+function removeNodeModules() {
|
|
23
|
+ shellUtils.exec.execSync(`rm -rf ./node_modules || true`);
|
|
24
|
+}
|
|
25
|
+
|
|
26
|
+function ignoreReactWarnings() {
|
|
27
|
+ shellUtils.exec.execSync(`./scripts/ignoreReactWarnings.rb`);
|
|
28
|
+}
|
|
29
|
+
|
|
30
|
+function hardlinkNavigation() {
|
|
31
|
+ shellUtils.exec.execSync(`hardlink ../ ./node_modules/react-native-navigation/ || true`);
|
|
32
|
+}
|
|
33
|
+
|
14
|
34
|
function run() {
|
15
|
|
- shellUtils.exec.execSyncSilent(`hardlink ./node_modules/react-native-navigation/ -u || true`);
|
16
|
|
- shellUtils.exec.execSyncSilent(`rm -rf ./node_modules || true`);
|
|
35
|
+ removeHardlinks();
|
|
36
|
+ removeNodeModules();
|
17
|
37
|
copyNodeModulesFromNavigation();
|
18
|
38
|
installNavigation();
|
19
|
|
- shellUtils.exec.execSync(`./scripts/ignoreReactWarnings.rb`);
|
20
|
|
- if (!process.env.CI) {
|
21
|
|
- shellUtils.exec.execSyncSilent(`hardlink ../ ./node_modules/react-native-navigation/ || true`);
|
22
|
|
- }
|
|
39
|
+ ignoreReactWarnings();
|
23
|
40
|
}
|
24
|
41
|
|
25
|
42
|
run();
|