|
34 | 34 | "compile": "father build", |
35 | 35 | "lint": "eslint src/ examples/ --ext .tsx,.ts,.jsx,.js", |
36 | 36 | "now-build": "npm run build", |
37 | | - "prepare": "dumi setup", |
| 37 | + "prepare": "husky && dumi setup", |
38 | 38 | "prepublishOnly": "npm run compile && np --yolo --no-publish --any-branch", |
39 | 39 | "prettier": "prettier '{src,tests}/**/*.{ts,tsx}' 'tests/**/*.js' --write", |
40 | 40 | "start": "dumi dev", |
41 | 41 | "test": "rc-test" |
42 | 42 | }, |
| 43 | + "lint-staged": { |
| 44 | + "*": "prettier --write --ignore-unknown" |
| 45 | + }, |
43 | 46 | "dependencies": { |
44 | 47 | "@babel/runtime": "^7.25.7", |
45 | 48 | "classnames": "2.x", |
46 | | - "rc-select": "~14.15.0", |
47 | | - "rc-tree": "~5.9.0", |
| 49 | + "rc-select": "~14.15.2", |
| 50 | + "rc-tree": "~5.10.0", |
48 | 51 | "rc-util": "^5.43.0" |
49 | 52 | }, |
50 | 53 | "devDependencies": { |
51 | | - "@rc-component/father-plugin": "^1.0.0", |
52 | | - "@rc-component/trigger": "^1.5.0", |
53 | | - "@testing-library/react": "^12.0.0", |
54 | | - "@types/jest": "^29.5.12", |
| 54 | + "@rc-component/father-plugin": "^1.1.0", |
| 55 | + "@rc-component/trigger": "^1.18.3", |
| 56 | + "@testing-library/react": "^12.1.5", |
| 57 | + "@types/jest": "^29.5.13", |
55 | 58 | "@types/node": "^22.7.5", |
56 | | - "@types/react": "^16.8.19", |
57 | | - "@types/react-dom": "^18.2.19", |
58 | | - "@types/warning": "^3.0.0", |
| 59 | + "@types/react": "^18.3.11", |
| 60 | + "@types/react-dom": "^18.3.1", |
| 61 | + "@types/warning": "^3.0.3", |
59 | 62 | "@umijs/fabric": "^4.0.1", |
| 63 | + "cheerio": "1.0.0-rc.12", |
60 | 64 | "cross-env": "^7.0.3", |
61 | 65 | "dumi": "^2.4.12", |
62 | 66 | "enzyme": "^3.11.0", |
63 | 67 | "enzyme-adapter-react-16": "^1.15.8", |
64 | 68 | "enzyme-to-json": "^3.6.2", |
65 | | - "eslint": "^8.56.0", |
66 | | - "eslint-plugin-jest": "^27.6.0", |
| 69 | + "eslint": "^8.57.1", |
| 70 | + "eslint-plugin-jest": "^27.9.0", |
67 | 71 | "eslint-plugin-unicorn": "^56.0.0", |
68 | 72 | "father": "^4.5.0", |
69 | 73 | "glob": "^11.0.0", |
| 74 | + "husky": "^9.1.6", |
| 75 | + "lint-staged": "^15.2.10", |
70 | 76 | "np": "^10.0.7", |
71 | 77 | "prettier": "^3.3.3", |
72 | 78 | "rc-dialog": "^9.6.0", |
73 | 79 | "rc-field-form": "^2.4.0", |
74 | | - "rc-test": "^7.1.0", |
| 80 | + "rc-test": "^7.1.1", |
75 | 81 | "rc-virtual-list": "^3.14.8", |
76 | | - "react": "16.x", |
77 | | - "react-dom": "16.x", |
78 | | - "typescript": "^5.6.3", |
79 | | - "cheerio": "1.0.0-rc.12" |
| 82 | + "react": "^16.0.0", |
| 83 | + "react-dom": "^16.0.0", |
| 84 | + "typescript": "^5.6.3" |
80 | 85 | }, |
81 | 86 | "peerDependencies": { |
82 | 87 | "react": "*", |
|
0 commit comments