|
@@ -1,8 +1,18 @@
|
1
|
1
|
const shellUtils = require('shell-utils');
|
2
|
2
|
|
3
|
|
-shellUtils.exec.execSync(`rm yarn.lock || true`);
|
4
|
|
-shellUtils.exec.execSync(`./scripts/ignoreReactWarnings.rb`);
|
|
3
|
+function installNavigation() {
|
|
4
|
+ shellUtils.exec.execSync(`mkdir -p ./node_modules/react-native-navigation`);
|
|
5
|
+ const navigationTar = shellUtils.exec.execSyncRead(`cd .. && npm pack`);
|
|
6
|
+ shellUtils.exec.execSync(`tar -xf ../${navigationTar} -C ./node_modules/react-native-navigation --strip 1`);
|
|
7
|
+ shellUtils.exec.execSync(`rm ../${navigationTar}`);
|
|
8
|
+}
|
|
9
|
+
|
|
10
|
+function run() {
|
|
11
|
+ shellUtils.exec.execSync(`rm yarn.lock || true`);
|
|
12
|
+ shellUtils.exec.execSync(`./scripts/ignoreReactWarnings.rb`);
|
|
13
|
+
|
|
14
|
+ installNavigation();
|
|
15
|
+}
|
|
16
|
+
|
|
17
|
+run();
|
5
|
18
|
|
6
|
|
-shellUtils.exec.execSync(`mkdir -p ./node_modules/react-native-navigation`);
|
7
|
|
-shellUtils.exec.execSync(`cd .. && npm pack`);
|
8
|
|
-//shellUtils.exec.execSync(`tar -xf ../react-native-navigation.tar`);
|