|
9 | 9 | "ui",
|
10 | 10 | "react-menu"
|
11 | 11 | ],
|
12 |
| - "files": [ |
13 |
| - "es", |
14 |
| - "lib", |
15 |
| - "assets/*.css", |
16 |
| - "assets/*.less" |
17 |
| - ], |
18 |
| - "main": "./lib/index", |
19 |
| - "module": "./es/index", |
20 | 12 | "homepage": "http://github.com/react-component/menu",
|
21 |
| - "maintainers": [ |
22 |
| - |
23 |
| - |
24 |
| - ], |
| 13 | + "bugs": { |
| 14 | + "url": "http://github.com/react-component/menu/issues" |
| 15 | + }, |
25 | 16 | "repository": {
|
26 | 17 | "type": "git",
|
27 | 18 | "url": "[email protected]:react-component/menu.git"
|
28 | 19 | },
|
29 |
| - "bugs": { |
30 |
| - "url": "http://github.com/react-component/menu/issues" |
31 |
| - }, |
32 | 20 | "license": "MIT",
|
| 21 | + "maintainers": [ |
| 22 | + |
| 23 | + |
| 24 | + ], |
| 25 | + "main": "./lib/index", |
| 26 | + "module": "./es/index", |
| 27 | + "files": [ |
| 28 | + "es", |
| 29 | + "lib", |
| 30 | + "assets/*.css", |
| 31 | + "assets/*.less" |
| 32 | + ], |
33 | 33 | "scripts": {
|
34 |
| - "start": "dumi dev", |
| 34 | + "compile": "father build && lessc assets/index.less assets/index.css", |
| 35 | + "coverage": "father test --coverage", |
35 | 36 | "docs:build": "dumi build",
|
36 | 37 | "docs:deploy": "gh-pages -d .doc",
|
37 |
| - "compile": "father build && lessc assets/index.less assets/index.css", |
38 |
| - "prepublishOnly": "npm run compile && np --yolo --no-publish", |
39 | 38 | "lint": "eslint src/ --ext .tsx,.ts,.jsx,.js",
|
40 |
| - "test": "father test", |
41 |
| - "coverage": "father test --coverage", |
42 |
| - "now-build": "npm run build" |
| 39 | + "now-build": "npm run build", |
| 40 | + "prepublishOnly": "npm run compile && np --yolo --no-publish", |
| 41 | + "start": "dumi dev", |
| 42 | + "test": "father test" |
43 | 43 | },
|
44 | 44 | "dependencies": {
|
45 | 45 | "@babel/runtime": "^7.10.1",
|
|
51 | 51 | "shallowequal": "^1.1.0"
|
52 | 52 | },
|
53 | 53 | "devDependencies": {
|
54 |
| - "@types/enzyme": "^3.10.8", |
| 54 | + "@testing-library/jest-dom": "^5.16.4", |
| 55 | + "@testing-library/react": "^13.0.0", |
55 | 56 | "@types/jest": "^26.0.23",
|
56 | 57 | "@types/react": "^16.8.19",
|
57 | 58 | "@types/react-dom": "^16.8.4",
|
58 | 59 | "@types/warning": "^3.0.0",
|
59 | 60 | "cross-env": "^7.0.0",
|
60 | 61 | "dumi": "^1.1.0",
|
61 |
| - "enzyme": "^3.3.0", |
62 |
| - "enzyme-adapter-react-16": "^1.0.2", |
63 |
| - "enzyme-to-json": "^3.4.0", |
64 | 62 | "eslint": "^7.0.0",
|
65 | 63 | "father": "^2.22.0",
|
66 | 64 | "father-build": "^1.18.6",
|
67 | 65 | "gh-pages": "^3.1.0",
|
68 | 66 | "less": "^3.10.3",
|
69 | 67 | "np": "^6.0.0",
|
70 |
| - "react": "^16.9.0", |
71 |
| - "react-dom": "^16.9.0", |
| 68 | + "react": "^18.0.0", |
| 69 | + "react-dom": "^18.0.0", |
72 | 70 | "regenerator-runtime": "^0.13.7",
|
73 | 71 | "typescript": "^4.0.5"
|
74 | 72 | },
|
|
0 commit comments