|
6 | 6 | "license": "MIT", |
7 | 7 | "repository": "solved-ac/ui-react", |
8 | 8 | "homepage": "https://github.com/solved-ac/ui-react", |
9 | | - "main": "dist/index.js", |
10 | | - "module": "dist/index.modern.js", |
11 | | - "source": "src/index.tsx", |
12 | | - "engines": { |
13 | | - "node": ">=10" |
| 9 | + "source": "./src/index.tsx", |
| 10 | + "main": "./dist/index.js", |
| 11 | + "jsnext:main": "./dist/index.modern.js", |
| 12 | + "module": "./dist/index.module.js", |
| 13 | + "syntax": { |
| 14 | + "esmodules": "./dist/index.modern.js" |
14 | 15 | }, |
| 16 | + "exports": { |
| 17 | + ".": { |
| 18 | + "browser": "./dist/index.module.js", |
| 19 | + "import": "./dist/index.module.js", |
| 20 | + "require": "./dist/index.js" |
| 21 | + } |
| 22 | + }, |
| 23 | + "files": [ |
| 24 | + "dist" |
| 25 | + ], |
15 | 26 | "scripts": { |
16 | | - "build": "microbundle --no-compress --format modern,cjs --jsx React.createElement", |
17 | | - "start": "microbundle watch --no-compress --format modern,cjs --jsx React.createElement", |
| 27 | + "build": "microbundle --no-compress -f cjs,esm,modern --jsx React.createElement --jsxImportSource react", |
| 28 | + "start": "microbundle watch --no-compress -f cjs,esm,modern --jsx React.createElement --jsxImportSource react", |
18 | 29 | "prepare": "run-s build", |
19 | 30 | "test": "run-s test:unit test:lint test:build", |
20 | 31 | "test:build": "run-s build", |
|
28 | 39 | "peerDependencies": { |
29 | 40 | "@emotion/react": ">=11", |
30 | 41 | "@emotion/styled": ">=11", |
31 | | - "react": ">=17", |
| 42 | + "@floating-ui/react-dom-interactions": "^0.8.0", |
32 | 43 | "react-dom": ">=17", |
33 | | - "@floating-ui/react-dom-interactions": "^0.8.0" |
34 | | - }, |
35 | | - "dependencies": { |
36 | | - "@emotion/react": "^11.1.5", |
37 | | - "@emotion/styled": "^11.1.5", |
38 | | - "react": "^17.0.1", |
39 | | - "react-dom": "^17.0.1", |
40 | | - "@floating-ui/react-dom-interactions": "^0.8.0" |
| 44 | + "react": ">=17" |
41 | 45 | }, |
42 | 46 | "devDependencies": { |
43 | 47 | "@babel/plugin-proposal-decorators": "^7.17.9", |
44 | 48 | "@babel/plugin-proposal-optional-chaining": "^7.16.7", |
| 49 | + "@emotion/react": "^11.1.5", |
| 50 | + "@emotion/styled": "^11.1.5", |
| 51 | + "@floating-ui/react-dom-interactions": "^0.8.0", |
45 | 52 | "@testing-library/jest-dom": "^4.2.4", |
46 | 53 | "@testing-library/react": "^9.5.0", |
47 | 54 | "@testing-library/user-event": "^7.2.1", |
48 | 55 | "@types/jest": "^25.1.4", |
49 | 56 | "@types/node": "^12.12.38", |
50 | | - "@types/react": "^18.0.9", |
51 | 57 | "@types/react-dom": "^18.0.3", |
| 58 | + "@types/react": "^18.0.9", |
52 | 59 | "@typescript-eslint/eslint-plugin": "^5.22.0", |
53 | 60 | "@typescript-eslint/parser": "^5.22.0", |
54 | 61 | "babel-eslint": "^10.0.3", |
|
57 | 64 | "babel-plugin-transform-react-jsx": "^6.24.1", |
58 | 65 | "cross-env": "^7.0.2", |
59 | 66 | "emotion-reset": "^3.0.1", |
60 | | - "eslint": "^8.15.0", |
61 | 67 | "eslint-config-airbnb": "^18.2.1", |
62 | 68 | "eslint-config-prettier": "^6.7.0", |
63 | | - "eslint-config-standard": "^14.1.0", |
64 | 69 | "eslint-config-standard-react": "^9.2.0", |
| 70 | + "eslint-config-standard": "^14.1.0", |
65 | 71 | "eslint-plugin-import": "^2.18.2", |
66 | 72 | "eslint-plugin-jsx-a11y": "^6.5.1", |
67 | 73 | "eslint-plugin-node": "^11.0.0", |
68 | 74 | "eslint-plugin-prettier": "^3.1.1", |
69 | 75 | "eslint-plugin-promise": "^4.2.1", |
70 | | - "eslint-plugin-react": "^7.29.4", |
71 | 76 | "eslint-plugin-react-hooks": "^4.4.0", |
| 77 | + "eslint-plugin-react": "^7.29.4", |
72 | 78 | "eslint-plugin-standard": "^4.0.1", |
| 79 | + "eslint": "^8.15.0", |
73 | 80 | "gh-pages": "^2.2.0", |
74 | 81 | "microbundle": "^0.15.0", |
75 | 82 | "npm-run-all": "^4.1.5", |
76 | 83 | "polished": "^4.2.2", |
77 | 84 | "prettier": "^2.6.2", |
| 85 | + "react-dom": "^17.0.1", |
78 | 86 | "react-scripts": "^5.0.1", |
79 | | - "typescript": "^4.6.4", |
80 | | - "@floating-ui/react-dom-interactions": "^0.8.0" |
81 | | - }, |
82 | | - "files": [ |
83 | | - "dist" |
84 | | - ] |
| 87 | + "react": "^17.0.1", |
| 88 | + "typescript": "^4.6.4" |
| 89 | + } |
85 | 90 | } |
0 commit comments