|
3 | 3 | "version": "1.0.0-alpha.2", |
4 | 4 | "description": "React hooks for convenient react-navigation use", |
5 | 5 | "main": "dist/Hooks.js", |
| 6 | + "types": "dist/Hooks.d.ts", |
6 | 7 | "files": [ |
7 | 8 | "dist/", |
8 | | - "src/", |
9 | | - "lib/", |
10 | 9 | "LICENSE.md", |
11 | 10 | "README.md" |
12 | 11 | ], |
13 | | - "react-native": "src/Hooks.js", |
14 | 12 | "scripts": { |
15 | 13 | "test": "jest", |
16 | | - "lint": "eslint .", |
17 | | - "format": "eslint . --fix", |
18 | | - "build": "babel --no-babelrc --plugins=transform-es2015-modules-commonjs,transform-react-jsx,transform-class-properties,transform-object-rest-spread,transform-flow-strip-types src --copy-files --out-dir dist --ignore '**/__tests__/**'", |
| 14 | + "lint": "tslint --project tsconfig.json", |
| 15 | + "build": "tsc --project tsconfig-build.json", |
19 | 16 | "prepare": "yarn build", |
20 | | - "release": "release-it" |
| 17 | + "release": "release-it", |
| 18 | + "precommit": "lint-staged" |
21 | 19 | }, |
22 | 20 | "publishConfig": { |
23 | 21 | "registry": "https://registry.npmjs.org/" |
|
34 | 32 | "homepage": "https://github.com/react-navigation/react-navigation-hooks#readme", |
35 | 33 | "dependencies": {}, |
36 | 34 | "devDependencies": { |
37 | | - "babel-cli": "^6.26.0", |
38 | | - "babel-jest": "^22.4.1", |
39 | | - "babel-plugin-transform-class-properties": "^6.13.0", |
40 | | - "babel-plugin-transform-es2015-modules-commonjs": "^6.26.2", |
41 | | - "babel-plugin-transform-flow-strip-types": "^6.22.0", |
42 | | - "babel-plugin-transform-object-rest-spread": "^6.13.0", |
43 | | - "babel-plugin-transform-react-jsx": "^6.18.0", |
44 | | - "babel-preset-react-native": "^4.0.0", |
| 35 | + "@react-navigation/core": "^3.0.0", |
| 36 | + "@types/jest": "^23.3.9", |
| 37 | + "@types/react": "^16.7.7", |
| 38 | + "@types/react-native": "^0.57.14", |
| 39 | + "@types/react-test-renderer": "^16.0.3", |
45 | 40 | "conventional-changelog-cli": "^2.0.5", |
46 | | - "eslint": "^4.12.1", |
47 | | - "eslint-config-satya164": "^1.0.1", |
48 | | - "eslint-plugin-react-native-globals": "^0.1.0", |
49 | 41 | "husky": "^0.14.3", |
50 | | - "jest": "^22.1.3", |
51 | | - "jest-expo": "^30.0.0", |
| 42 | + "jest": "^23.6.0", |
| 43 | + "lint-staged": "^8.1.0", |
52 | 44 | "prettier": "^1.8.2", |
53 | | - "react": "16.7.0-alpha.0", |
54 | | - "react-dom": "16.7.0-alpha.0", |
55 | | - "react-native": "^0.55.4", |
56 | | - "react-test-renderer": "16.7.0-alpha.0", |
57 | | - "release-it": "^7.6.1" |
| 45 | + "pretty-quick": "^1.8.0", |
| 46 | + "react": "^16.7.0-alpha.2", |
| 47 | + "react-dom": "^16.7.0-alpha.2", |
| 48 | + "react-native": "^0.57.7", |
| 49 | + "react-test-renderer": "^16.7.0-alpha.2", |
| 50 | + "release-it": "^7.6.1", |
| 51 | + "ts-jest": "^23.10.5", |
| 52 | + "tslint": "^5.11.0", |
| 53 | + "tslint-config-airbnb": "^5.11.1", |
| 54 | + "tslint-config-prettier": "^1.16.0", |
| 55 | + "tslint-react": "^3.6.0", |
| 56 | + "typescript": "^3.1.6" |
58 | 57 | }, |
59 | 58 | "peerDependencies": { |
60 | | - "react": "^16.7.0-alpha.0", |
61 | | - "react-dom": "^16.7.0-alpha.0", |
62 | | - "@react-navigation/core": "^3.0.0-alpha.17" |
| 59 | + "@react-navigation/core": "^3.0.0", |
| 60 | + "react": "^16.7.0-alpha.2", |
| 61 | + "react-dom": "^16.7.0-alpha.2" |
63 | 62 | }, |
64 | | - "jest": { |
65 | | - "preset": "react-native", |
66 | | - "testRegex": "/__tests__/[^/]+-test\\.js$", |
67 | | - "setupFiles": [ |
68 | | - "<rootDir>/jest-setup.js" |
69 | | - ], |
70 | | - "coveragePathIgnorePatterns": [ |
71 | | - "jest-setup.js" |
72 | | - ], |
73 | | - "modulePathIgnorePatterns": [ |
74 | | - "<rootDir>/example/" |
75 | | - ], |
76 | | - "transformIgnorePatterns": [ |
77 | | - "node_modules/(?!(jest-)?react-native|react-clone-referenced-element|@react-navigation/core)" |
| 63 | + "lint-staged": { |
| 64 | + "{src}/**/*.ts*": [ |
| 65 | + "prettier --write", |
| 66 | + "git add" |
78 | 67 | ] |
79 | | - }, |
80 | | - "prettier": { |
81 | | - "trailingComma": "es5", |
82 | | - "singleQuote": true |
83 | 68 | } |
84 | 69 | } |
0 commit comments