|
@@ -23,23 +23,25 @@
|
23
|
23
|
"type": "git",
|
24
|
24
|
"url": "https://github.com/wix/react-native-navigation.git"
|
25
|
25
|
},
|
26
|
|
- "main": "lib/src/index.js",
|
|
26
|
+ "main": "lib/dist/index.js",
|
27
|
27
|
"scripts": {
|
28
|
|
- "build": ":",
|
|
28
|
+ "build": "rm -rf ./lib/dist && tsc",
|
29
|
29
|
"xcode": "open playground/ios/playground.xcodeproj",
|
30
|
30
|
"install-android": "node ./scripts/install-android.js",
|
31
|
31
|
"uninstall-android": "cd playground/android && ./gradlew uninstallAll",
|
32
|
32
|
"clean": "node ./scripts/clean.js",
|
|
33
|
+ "prestart": "npm run build",
|
33
|
34
|
"start": "node ./scripts/start.js",
|
|
35
|
+ "pretest-js": "npm run build",
|
34
|
36
|
"test-js": "node ./scripts/test-js.js",
|
35
|
37
|
"test-unit-android": "node ./scripts/test.unit.android.js",
|
36
|
38
|
"test-unit-ios": "node ./scripts/test.unit.ios.js",
|
|
39
|
+ "pretest-e2e-android": "npm run build",
|
37
|
40
|
"test-e2e-android": "node ./scripts/test.e2e.android.js",
|
|
41
|
+ "pretest-e2e-ios": "npm run build",
|
38
|
42
|
"test-e2e-ios": "node ./scripts/test.e2e.ios.js",
|
39
|
43
|
"test-all": "node ./scripts/test.all.js",
|
40
|
|
- "test-watch": "jest --coverage --watch",
|
41
|
|
- "release": "node ./scripts/release.js",
|
42
|
|
- "gen-doc": "node ./scripts/generate-js-doc.js"
|
|
44
|
+ "release": "node ./scripts/release.js"
|
43
|
45
|
},
|
44
|
46
|
"peerDependencies": {
|
45
|
47
|
"react": "*",
|
|
@@ -66,7 +68,12 @@
|
66
|
68
|
"remx": "2.x.x",
|
67
|
69
|
"semver": "5.x.x",
|
68
|
70
|
"shell-utils": "1.x.x",
|
69
|
|
- "xo": "0.18.x"
|
|
71
|
+ "xo": "0.18.x",
|
|
72
|
+ "typescript": "2.x.x",
|
|
73
|
+ "@types/react": "16.0.0",
|
|
74
|
+ "@types/react-native": "0.49.x",
|
|
75
|
+ "@types/jest": "22.x.x",
|
|
76
|
+ "@types/prop-types": "15.x.x"
|
70
|
77
|
},
|
71
|
78
|
"babel": {
|
72
|
79
|
"env": {
|
|
@@ -81,15 +88,15 @@
|
81
|
88
|
"preset": "react-native",
|
82
|
89
|
"roots": [
|
83
|
90
|
"<rootDir>/node_modules/",
|
84
|
|
- "<rootDir>/lib/src/",
|
|
91
|
+ "<rootDir>/lib/dist/",
|
85
|
92
|
"<rootDir>/integration/"
|
86
|
93
|
],
|
87
|
94
|
"collectCoverageFrom": [
|
88
|
|
- "lib/src/**/*.js",
|
|
95
|
+ "lib/dist/**/*.js",
|
89
|
96
|
"integration/**/*.js",
|
90
|
|
- "!lib/src/index.js",
|
91
|
|
- "!lib/src/Navigation.js",
|
92
|
|
- "!lib/src/adapters/**/*"
|
|
97
|
+ "!lib/dist/index.js",
|
|
98
|
+ "!lib/dist/Navigation.js",
|
|
99
|
+ "!lib/dist/adapters/**/*"
|
93
|
100
|
],
|
94
|
101
|
"resetMocks": true,
|
95
|
102
|
"resetModules": true,
|