Skip to content

Commit

Permalink
fix(svg): fixed package.json fields (#216)
Browse files Browse the repository at this point in the history
Signed-off-by: Antonette Caldwell <[email protected]>
  • Loading branch information
nebula-aac authored Nov 2, 2023
1 parent c3c916a commit bbd305f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 22 deletions.
29 changes: 13 additions & 16 deletions packages/svg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@
"version": "0.11.1-beta.0",
"description": "SVG Icons library",
"type": "module",
"main": "./dist/index.js",
"exports": {
".": {
"import": "./dist/index.es.js",
"require": "./dist/index.cjs.js",
"types": "./dist/index.d.ts"
}
},
"main": "./dist/index.cjs.js",
"module": "./dist/index.es.js",
"types": "./dist/index.d.ts",
"files": [
Expand Down Expand Up @@ -32,25 +39,15 @@
"vite-plugin-dts": "^3.5.3"
},
"publishConfig": {
"access": "public",
"exports": {
".": {
"import": "./dist/index.es.js",
"require": "./dist/index.cjs.js",
"default": "./dist/index.js"
}
},
"main": "./dist/index.cjs.js",
"module": "./dist/index.es.js",
"types": "./dist/index.d.ts"
"access": "public"
},
"optionalDependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react": "^17.0.0 || ^18.0.0",
"react-dom": "^17.0.0 || ^18.0.0"
},
"peerDependencies": {
"react": "*",
"react-dom": "*"
"react": "^17.0.0 || ^18.0.0",
"react-dom": "^17.0.0 || ^18.0.0"
},
"peerDependenciesMeta": {
"react": {
Expand Down
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2469,14 +2469,14 @@ __metadata:
eslint-plugin-react: ^7.33.2
eslint-plugin-react-hooks: ^4.6.0
eslint-plugin-react-refresh: ^0.4.3
react: ^18.2.0
react-dom: ^18.2.0
react: ^17.0.0 || ^18.0.0
react-dom: ^17.0.0 || ^18.0.0
typescript: ^5.0.2
vite: ^4.5.0
vite-plugin-dts: ^3.5.3
peerDependencies:
react: "*"
react-dom: "*"
react: ^17.0.0 || ^18.0.0
react-dom: ^17.0.0 || ^18.0.0
dependenciesMeta:
react:
optional: true
Expand Down Expand Up @@ -14141,7 +14141,7 @@ __metadata:
languageName: node
linkType: hard

"react-dom@npm:^18.2.0":
"react-dom@npm:^17.0.0 || ^18.0.0, react-dom@npm:^18.2.0":
version: 18.2.0
resolution: "react-dom@npm:18.2.0"
dependencies:
Expand Down Expand Up @@ -14354,7 +14354,7 @@ __metadata:
languageName: node
linkType: hard

"react@npm:^18.2.0":
"react@npm:^17.0.0 || ^18.0.0, react@npm:^18.2.0":
version: 18.2.0
resolution: "react@npm:18.2.0"
dependencies:
Expand Down

0 comments on commit bbd305f

Please sign in to comment.