Skip to content

Commit 9636a48

Browse files
committed
fix: try fixing package.json
1 parent 5a2069b commit 9636a48

File tree

1 file changed

+29
-21
lines changed

1 file changed

+29
-21
lines changed

package.json

Lines changed: 29 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,26 @@
66
"license": "MIT",
77
"repository": "solved-ac/ui-react",
88
"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"
1415
},
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+
],
1526
"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",
1829
"prepare": "run-s build",
1930
"test": "run-s test:unit test:lint test:build",
2031
"test:build": "run-s build",
@@ -28,27 +39,28 @@
2839
"peerDependencies": {
2940
"@emotion/react": ">=11",
3041
"@emotion/styled": ">=11",
31-
"react": ">=17",
42+
"@floating-ui/react-dom-interactions": "^0.8.0",
3243
"react-dom": ">=17",
33-
"@floating-ui/react-dom-interactions": "^0.8.0"
44+
"react": ">=17"
3445
},
3546
"dependencies": {
3647
"@emotion/react": "^11.1.5",
3748
"@emotion/styled": "^11.1.5",
38-
"react": "^17.0.1",
49+
"@floating-ui/react-dom-interactions": "^0.8.0",
3950
"react-dom": "^17.0.1",
40-
"@floating-ui/react-dom-interactions": "^0.8.0"
51+
"react": "^17.0.1"
4152
},
4253
"devDependencies": {
4354
"@babel/plugin-proposal-decorators": "^7.17.9",
4455
"@babel/plugin-proposal-optional-chaining": "^7.16.7",
56+
"@floating-ui/react-dom-interactions": "^0.8.0",
4557
"@testing-library/jest-dom": "^4.2.4",
4658
"@testing-library/react": "^9.5.0",
4759
"@testing-library/user-event": "^7.2.1",
4860
"@types/jest": "^25.1.4",
4961
"@types/node": "^12.12.38",
50-
"@types/react": "^18.0.9",
5162
"@types/react-dom": "^18.0.3",
63+
"@types/react": "^18.0.9",
5264
"@typescript-eslint/eslint-plugin": "^5.22.0",
5365
"@typescript-eslint/parser": "^5.22.0",
5466
"babel-eslint": "^10.0.3",
@@ -57,29 +69,25 @@
5769
"babel-plugin-transform-react-jsx": "^6.24.1",
5870
"cross-env": "^7.0.2",
5971
"emotion-reset": "^3.0.1",
60-
"eslint": "^8.15.0",
6172
"eslint-config-airbnb": "^18.2.1",
6273
"eslint-config-prettier": "^6.7.0",
63-
"eslint-config-standard": "^14.1.0",
6474
"eslint-config-standard-react": "^9.2.0",
75+
"eslint-config-standard": "^14.1.0",
6576
"eslint-plugin-import": "^2.18.2",
6677
"eslint-plugin-jsx-a11y": "^6.5.1",
6778
"eslint-plugin-node": "^11.0.0",
6879
"eslint-plugin-prettier": "^3.1.1",
6980
"eslint-plugin-promise": "^4.2.1",
70-
"eslint-plugin-react": "^7.29.4",
7181
"eslint-plugin-react-hooks": "^4.4.0",
82+
"eslint-plugin-react": "^7.29.4",
7283
"eslint-plugin-standard": "^4.0.1",
84+
"eslint": "^8.15.0",
7385
"gh-pages": "^2.2.0",
7486
"microbundle": "^0.15.0",
7587
"npm-run-all": "^4.1.5",
7688
"polished": "^4.2.2",
7789
"prettier": "^2.6.2",
7890
"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-
]
91+
"typescript": "^4.6.4"
92+
}
8593
}

0 commit comments

Comments
 (0)