|
2 | 2 | "name": "@react-navigation/core", |
3 | 3 | "version": "3.3.1", |
4 | 4 | "description": "Core utilities for the react-navigation framework", |
5 | | - "main": "dist/index.js", |
6 | | - "react-native": "dist/index.js", |
7 | | - "module": "dist/index.js", |
| 5 | + "main": "lib/commonjs/index.js", |
| 6 | + "react-native": "src/index.js", |
| 7 | + "module": "lib/module/index.js", |
8 | 8 | "sideEffects": false, |
9 | 9 | "files": [ |
10 | | - "dist/", |
11 | | - "src/", |
12 | | - "LICENSE.md", |
13 | | - "README.md" |
| 10 | + "src", |
| 11 | + "lib" |
14 | 12 | ], |
15 | 13 | "scripts": { |
16 | | - "pretest": "yarn lint && yarn build", |
17 | 14 | "test": "jest", |
18 | | - "lint": "eslint .", |
19 | | - "format": "eslint . --fix", |
20 | | - "babel": "babel --extensions '.js,.ts,.tsx' --no-babelrc --config-file=./babel.config.publish.js src --ignore '**/__tests__/**' --copy-files --source-maps --delete-dir-on-start", |
21 | | - "tsc": "tsc", |
22 | | - "build": "yarn babel --out-dir dist && del-cli 'dist/**/__tests__' && yarn tsc --emitDeclarationOnly", |
23 | | - "dev": "yarn babel --watch src --out-dir example/node_modules/@react-navigation/core/dist", |
24 | | - "prepare": "yarn build", |
25 | | - "release": "release-it" |
| 15 | + "lint": "eslint --ext .js,.ts,.tsx .", |
| 16 | + "typescript": "tsc --noEmit", |
| 17 | + "example": "yarn --cwd example", |
| 18 | + "bootstrap": "yarn && yarn example", |
| 19 | + "prepare": "bob build" |
26 | 20 | }, |
27 | 21 | "publishConfig": { |
28 | 22 | "registry": "https://registry.npmjs.org/" |
|
44 | 38 | }, |
45 | 39 | "homepage": "https://github.com/react-navigation/react-navigation-core#readme", |
46 | 40 | "dependencies": { |
47 | | - "hoist-non-react-statics": "^2.5.5", |
| 41 | + "hoist-non-react-statics": "^3.3.0", |
48 | 42 | "path-to-regexp": "^1.7.0", |
49 | | - "query-string": "^6.2.0", |
50 | | - "react-is": "^16.6.3" |
| 43 | + "query-string": "^6.4.2", |
| 44 | + "react-is": "^16.8.6" |
51 | 45 | }, |
52 | 46 | "devDependencies": { |
53 | | - "@babel/cli": "^7.2.3", |
54 | | - "@babel/core": "^7.3.4", |
55 | | - "@babel/plugin-proposal-class-properties": "7.3.4", |
56 | | - "@babel/plugin-proposal-object-rest-spread": "7.3.4", |
57 | | - "@babel/plugin-transform-block-scoping": "7.3.4", |
58 | | - "@babel/plugin-transform-modules-commonjs": "7.2.0", |
59 | | - "@babel/preset-flow": "^7.0.0", |
60 | | - "@babel/preset-react": "^7.0.0", |
61 | | - "@babel/preset-typescript": "^7.3.3", |
62 | | - "@react-navigation/core": "^3.2.1", |
63 | | - "@react-navigation/native": "^3.3.0", |
| 47 | + "@babel/cli": "^7.4.3", |
| 48 | + "@commitlint/config-conventional": "^7.5.0", |
| 49 | + "@react-native-community/bob": "^0.3.4", |
| 50 | + "@react-navigation/core": "^3.3.1", |
| 51 | + "@react-navigation/native": "^3.4.1", |
64 | 52 | "babel-core": "7.0.0-bridge.0", |
65 | 53 | "babel-eslint": "^10.0.1", |
66 | | - "babel-jest": "^24.1.0", |
| 54 | + "babel-jest": "^24.7.1", |
| 55 | + "commitlint": "^7.5.2", |
67 | 56 | "conventional-changelog-cli": "^2.0.5", |
68 | 57 | "del-cli": "^1.1.0", |
69 | | - "eslint": "^4.12.1", |
70 | | - "eslint-config-satya164": "^1.0.1", |
| 58 | + "eslint": "^5.16.0", |
| 59 | + "eslint-config-satya164": "^2.4.1", |
71 | 60 | "eslint-plugin-react-native-globals": "^0.1.0", |
72 | 61 | "husky": "^1.1.2", |
73 | | - "jest": "^24.1.0", |
| 62 | + "jest": "^24.7.1", |
74 | 63 | "jest-expo": "^32.0.0", |
75 | | - "metro-react-native-babel-preset": "^0.49.2", |
76 | | - "prettier": "^1.13.6", |
| 64 | + "metro-react-native-babel-preset": "^0.53.1", |
| 65 | + "prettier": "^1.17.0", |
77 | 66 | "react": "16.6.3", |
78 | 67 | "react-dom": "16.6.3", |
79 | 68 | "react-native": "^0.58.6", |
80 | | - "react-native-testing-library": "^1.6.2", |
81 | | - "react-test-renderer": "16.6.3", |
82 | | - "release-it": "^7.6.1", |
83 | | - "ts-jest": "^24.0.0", |
84 | | - "typescript": "^3.3.3333" |
| 69 | + "react-native-testing-library": "^1.7.0", |
| 70 | + "react-test-renderer": "16.8.6", |
| 71 | + "release-it": "^10.4.2", |
| 72 | + "typescript": "^3.4.3" |
85 | 73 | }, |
86 | 74 | "peerDependencies": { |
87 | 75 | "react": "*" |
|
99 | 87 | "node_modules/(?!(jest-)?react-native|react-clone-referenced-element|@react-navigation)" |
100 | 88 | ], |
101 | 89 | "transform": { |
102 | | - "^.+\\.tsx?$": "ts-jest" |
| 90 | + "^.+\\.(js|ts|tsx)$": "babel-jest" |
103 | 91 | }, |
104 | | - "moduleFileExtensions": [ |
105 | | - "ts", |
106 | | - "js" |
107 | | - ], |
108 | 92 | "modulePathIgnorePatterns": [ |
109 | | - "<rootDir>/example/" |
110 | | - ], |
111 | | - "globals": { |
112 | | - "ts-jest": { |
113 | | - "tsConfig": "./tsconfig.test.json", |
114 | | - "diagnostics": { |
115 | | - "ignoreCodes": [ |
116 | | - 151001 |
117 | | - ] |
118 | | - } |
119 | | - } |
120 | | - } |
| 93 | + "<rootDir>/example/", |
| 94 | + "<rootDir>/lib/" |
| 95 | + ] |
121 | 96 | }, |
122 | 97 | "prettier": { |
123 | 98 | "trailingComma": "es5", |
124 | 99 | "singleQuote": true |
| 100 | + }, |
| 101 | + "husky": { |
| 102 | + "hooks": { |
| 103 | + "pre-commit": "yarn lint && yarn typescript && yarn test", |
| 104 | + "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" |
| 105 | + } |
| 106 | + }, |
| 107 | + "@react-native-community/bob": { |
| 108 | + "source": "src", |
| 109 | + "output": "lib", |
| 110 | + "targets": [ |
| 111 | + "commonjs", |
| 112 | + "module", |
| 113 | + "typescript" |
| 114 | + ] |
125 | 115 | } |
126 | 116 | } |
0 commit comments