|
1 | 1 | { |
2 | 2 | "name": "@rc-component/portal", |
3 | | - "version": "1.1.2", |
| 3 | + "version": "2.0.0", |
4 | 4 | "description": "React Portal Component", |
5 | 5 | "keywords": [ |
6 | 6 | "react", |
|
27 | 27 | ], |
28 | 28 | "scripts": { |
29 | 29 | "compile": "father build", |
30 | | - "prepare": "dumi setup", |
31 | 30 | "deploy": "npm run docs:build && npm run docs:deploy", |
32 | 31 | "docs:build": "dumi build", |
33 | 32 | "docs:deploy": "gh-pages -d docs-dist", |
34 | 33 | "lint": "eslint src/ --ext .tsx,.ts", |
35 | 34 | "lint:tsc": "tsc -p tsconfig.json --noEmit", |
36 | 35 | "now-build": "npm run docs:build", |
37 | | - "prepublishOnly": "npm run compile && np --no-cleanup --yolo --no-publish", |
| 36 | + "prepare": "dumi setup", |
| 37 | + "prepublishOnly": "npm run compile && rc-np", |
38 | 38 | "prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"", |
39 | 39 | "start": "dumi dev", |
40 | 40 | "test": "npm run test:server && npm run test:coverage", |
41 | | - "test:client": "umi-test --testPathIgnorePatterns=ssr.test.tsx --testPathIgnorePatterns=ssr.test.tsx", |
| 41 | + "test:client": "rc-test --testPathIgnorePatterns=ssr.test.tsx --testPathIgnorePatterns=ssr.test.tsx", |
42 | 42 | "test:coverage": "npm run test:client -- --coverage", |
43 | | - "test:server": "umi-test --env=node -- tests/ssr.test.tsx", |
| 43 | + "test:server": "rc-test --env=node -- tests/ssr.test.tsx", |
44 | 44 | "watch": "father dev" |
45 | 45 | }, |
46 | 46 | "dependencies": { |
47 | | - "@babel/runtime": "^7.18.0", |
48 | | - "classnames": "^2.3.2", |
49 | | - "rc-util": "^5.24.4" |
| 47 | + "@rc-component/util": "^1.2.1", |
| 48 | + "classnames": "^2.3.2" |
50 | 49 | }, |
51 | 50 | "devDependencies": { |
52 | | - "@rc-component/father-plugin": "^1.0.0", |
| 51 | + "@rc-component/father-plugin": "^2.0.2", |
| 52 | + "@rc-component/np": "^1.0.3", |
53 | 53 | "@testing-library/jest-dom": "^5.16.4", |
54 | 54 | "@testing-library/react": "^13.0.0", |
55 | 55 | "@types/jest": "^26.0.20", |
|
62 | 62 | "father": "^4.0.0", |
63 | 63 | "gh-pages": "^6.1.1", |
64 | 64 | "glob": "^10.0.0", |
65 | | - "np": "^5.0.3", |
66 | 65 | "prettier": "^2.1.2", |
67 | | - "react": "^18.0.0", |
68 | | - "react-dom": "^18.0.0", |
69 | | - "typescript": "^5.0.0", |
70 | | - "cheerio": "1.0.0-rc.12", |
71 | | - "umi-test": "^1.9.7" |
| 66 | + "rc-test": "^7.1.2", |
| 67 | + "react": "^19.0.0", |
| 68 | + "react-dom": "^19.0.0", |
| 69 | + "typescript": "^5.0.0" |
72 | 70 | }, |
73 | 71 | "peerDependencies": { |
74 | | - "react": ">=16.9.0", |
75 | | - "react-dom": ">=16.9.0" |
| 72 | + "react": ">=18.0.0", |
| 73 | + "react-dom": ">=18.0.0" |
76 | 74 | }, |
77 | 75 | "engines": { |
78 | | - "node": ">=8.x" |
| 76 | + "node": ">=12.x" |
79 | 77 | } |
80 | 78 | } |
0 commit comments