|
30 | 30 | "mock.js" |
31 | 31 | ], |
32 | 32 | "scripts": { |
33 | | - "start": "react-native start", |
34 | | - "prepare": "bob build", |
35 | 33 | "format": "prettier '**/*.{js,json,md,ts,tsx}' --write", |
36 | 34 | "lint": "eslint \"./**/*.{js,ts,tsx}\"", |
| 35 | + "prepare": "yarn setup-hooks && bob build", |
| 36 | + "setup-hooks": "git config --local core.hooksPath .hooks", |
37 | 37 | "tscheck": "tsc --project ./ --noEmit" |
38 | 38 | }, |
39 | | - "@react-native-community/bob": { |
| 39 | + "react-native-builder-bob": { |
40 | 40 | "source": "src", |
41 | 41 | "output": "dist", |
42 | 42 | "targets": [ |
|
54 | 54 | "prettier --write" |
55 | 55 | ] |
56 | 56 | }, |
57 | | - "husky": { |
58 | | - "hooks": { |
59 | | - "pre-commit": "lint-staged" |
60 | | - } |
61 | | - }, |
62 | 57 | "peerDependencies": { |
63 | 58 | "react": ">=16.13.1", |
64 | 59 | "react-native": ">=0.63.3", |
|
70 | 65 | } |
71 | 66 | }, |
72 | 67 | "devDependencies": { |
73 | | - "@babel/core": "^7.15.8", |
74 | | - "@react-native-community/bob": "^0.17.1", |
75 | | - "@types/react-native": "^0.63.53", |
76 | | - "@typescript-eslint/eslint-plugin": "^5.0.0", |
77 | | - "@typescript-eslint/parser": "^5.0.0", |
78 | | - "eslint": "^8.0.1", |
79 | | - "eslint-plugin-react": "^7.26.1", |
80 | | - "eslint-plugin-react-hooks": "^4.2.0", |
81 | | - "husky": "^4.3.8", |
82 | | - "lint-staged": "^11.2.3", |
83 | | - "prettier": "^2.4.1", |
84 | | - "react": "16.13.1", |
85 | | - "react-native": "0.63.3", |
86 | | - "typescript": "^4.4.4" |
| 68 | + "@types/react-native": "^0.66.6", |
| 69 | + "@typescript-eslint/eslint-plugin": "^5.4.0", |
| 70 | + "@typescript-eslint/parser": "^5.4.0", |
| 71 | + "eslint": "^8.3.0", |
| 72 | + "eslint-plugin-react": "^7.27.1", |
| 73 | + "eslint-plugin-react-hooks": "^4.3.0", |
| 74 | + "lint-staged": "^12.1.2", |
| 75 | + "prettier": "^2.5.0", |
| 76 | + "prettier-plugin-organize-imports": "^2.3.4", |
| 77 | + "react": "17.0.2", |
| 78 | + "react-native": "0.66.3", |
| 79 | + "react-native-builder-bob": "^0.18.2", |
| 80 | + "typescript": "^4.5.2" |
87 | 81 | } |
88 | 82 | } |
0 commit comments