|
1 | 1 | { |
2 | | - "name": "rc-component/portal", |
| 2 | + "name": "@rc-component/portal", |
3 | 3 | "version": "0.0.0", |
4 | 4 | "description": "React Portal Component", |
5 | | - "typings": "es/index.d.ts", |
6 | | - "engines": { |
7 | | - "node": ">=8.x" |
8 | | - }, |
9 | 5 | "keywords": [ |
10 | 6 | "react", |
11 | 7 | "react-component", |
12 | 8 | "react-portal" |
13 | 9 | ], |
14 | 10 | "homepage": "https://github.com/react-component/portal", |
15 | | - |
| 11 | + "bugs": { |
| 12 | + "url": "https://github.com/react-component/portal/issues" |
| 13 | + }, |
16 | 14 | "repository": { |
17 | 15 | "type": "git", |
18 | 16 | "url": "https://github.com/react-component/portal.git" |
19 | 17 | }, |
20 | | - "bugs": { |
21 | | - "url": "https://github.com/react-component/portal/issues" |
22 | | - }, |
| 18 | + "license": "MIT", |
| 19 | + |
| 20 | + "main": "./lib/index", |
| 21 | + "module": "./es/index", |
| 22 | + "typings": "es/index.d.ts", |
23 | 23 | "files": [ |
24 | 24 | "lib", |
25 | 25 | "es", |
26 | 26 | "dist" |
27 | 27 | ], |
28 | | - "license": "MIT", |
29 | | - "main": "./lib/index", |
30 | | - "module": "./es/index", |
31 | 28 | "scripts": { |
32 | | - "start": "dumi dev", |
33 | | - "docs:build": "dumi build", |
34 | | - "docs:deploy": "gh-pages -d docs-dist", |
35 | 29 | "compile": "father build", |
36 | 30 | "deploy": "npm run docs:build && npm run docs:deploy", |
37 | | - "prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"", |
38 | | - "test": "umi-test", |
39 | | - "test:coverage": "umi-test --coverage", |
40 | | - "prepublishOnly": "npm run compile && np --no-cleanup --yolo --no-publish", |
| 31 | + "docs:build": "dumi build", |
| 32 | + "docs:deploy": "gh-pages -d docs-dist", |
41 | 33 | "lint": "eslint src/ --ext .tsx,.ts", |
42 | 34 | "lint:tsc": "tsc -p tsconfig.json --noEmit", |
43 | 35 | "now-build": "npm run docs:build", |
| 36 | + "prepublishOnly": "npm run compile && np --no-cleanup --yolo --no-publish", |
| 37 | + "prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"", |
| 38 | + "start": "dumi dev", |
| 39 | + "test": "umi-test", |
| 40 | + "test:coverage": "umi-test --coverage", |
44 | 41 | "watch": "father dev" |
45 | 42 | }, |
46 | | - "peerDependencies": { |
47 | | - "react": ">=16.9.0", |
48 | | - "react-dom": ">=16.9.0" |
49 | | - }, |
50 | 43 | "dependencies": { |
51 | 44 | "@babel/runtime": "^7.18.0", |
52 | 45 | "rc-util": "^5.8.0" |
|
64 | 57 | "gh-pages": "^3.1.0", |
65 | 58 | "np": "^5.0.3", |
66 | 59 | "prettier": "^2.1.2", |
67 | | - "react": "^16.14.0", |
68 | | - "react-dom": "^16.14.0", |
| 60 | + "react": "^18.0.0", |
| 61 | + "react-dom": "^18.0.0", |
69 | 62 | "typescript": "^4.6.3", |
70 | 63 | "umi-test": "^1.9.7" |
| 64 | + }, |
| 65 | + "peerDependencies": { |
| 66 | + "react": ">=16.9.0", |
| 67 | + "react-dom": ">=16.9.0" |
| 68 | + }, |
| 69 | + "engines": { |
| 70 | + "node": ">=8.x" |
71 | 71 | } |
72 | 72 | } |
0 commit comments