|
1 | 1 | { |
2 | 2 | "name": "react-navigation-hooks", |
3 | | - "version": "1.0.1", |
| 3 | + "versin": "1.0.1", |
4 | 4 | "description": "React hooks for convenient react-navigation use", |
5 | | - "main": "dist/Hooks.js", |
6 | | - "types": "dist/Hooks.d.ts", |
| 5 | + "main": "dist/commonjs/Hooks.js", |
| 6 | + "module": "dist/module/Hooks.js", |
| 7 | + "react-native": "dist/module/Hooks.js", |
| 8 | + "types": "dist/typescript/Hooks.d.ts", |
7 | 9 | "files": [ |
8 | 10 | "dist/", |
9 | 11 | "src/", |
|
14 | 16 | "test": "jest", |
15 | 17 | "lint": "tslint --project tsconfig.json", |
16 | 18 | "build": "tsc --project tsconfig-build.json", |
17 | | - "prepare": "yarn build", |
| 19 | + "prepare": "bob build", |
18 | 20 | "release": "release-it", |
19 | 21 | "precommit": "lint-staged" |
20 | 22 | }, |
|
31 | 33 | "url": "https://github.com/react-navigation/react-navigation-hooks/issues" |
32 | 34 | }, |
33 | 35 | "homepage": "https://github.com/react-navigation/react-navigation-hooks#readme", |
| 36 | + "@react-native-community/bob": { |
| 37 | + "source": "src", |
| 38 | + "output": "dist", |
| 39 | + "targets": [ |
| 40 | + [ |
| 41 | + "commonjs", |
| 42 | + { |
| 43 | + "flow": true |
| 44 | + } |
| 45 | + ], |
| 46 | + "module", |
| 47 | + "typescript" |
| 48 | + ] |
| 49 | + }, |
34 | 50 | "devDependencies": { |
| 51 | + "@react-native-community/bob": "^0.6.1", |
35 | 52 | "@react-navigation/core": "^3.0.0", |
36 | 53 | "@react-navigation/native": "^3.0.2", |
37 | 54 | "@types/jest": "^23.3.9", |
38 | 55 | "@types/react": "^16.7.7", |
39 | 56 | "@types/react-native": "^0.57.14", |
| 57 | + "@types/react-navigation": "^3.0.7", |
40 | 58 | "@types/react-test-renderer": "^16.0.3", |
41 | 59 | "conventional-changelog-cli": "^2.0.5", |
42 | 60 | "husky": "^0.14.3", |
|
46 | 64 | "pretty-quick": "^1.8.0", |
47 | 65 | "react": "^16.7.0-alpha.2", |
48 | 66 | "react-native": "^0.57.7", |
49 | | - "react-navigation-types-only": "bySabi/react-navigation#patch-1", |
50 | 67 | "react-test-renderer": "^16.7.0-alpha.2", |
51 | 68 | "release-it": "^7.6.1", |
52 | 69 | "ts-jest": "^23.10.5", |
|
58 | 75 | }, |
59 | 76 | "peerDependencies": { |
60 | 77 | "@react-navigation/core": "^3.0.0", |
61 | | - "react": "^16.7.0-alpha.2", |
| 78 | + "react": "^16.8.0", |
62 | 79 | "react-native": "*" |
63 | 80 | }, |
64 | 81 | "lint-staged": { |
|
0 commit comments