Skip to content

Commit

Permalink
keep both js and cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Jan 30, 2022
1 parent b977574 commit 4e285a6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
7 changes: 5 additions & 2 deletions immutable/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
{
"name": "swr-immutable",
"version": "0.0.1",
"main": "./dist/index.cjs",
"main": "./dist/index.js",
"module": "./dist/index.esm.js",
"types": "./dist/immutable",
"exports": "./dist/index.mjs",
"exports": {
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
},
"peerDependencies": {
"swr": "*",
"react": "*"
Expand Down
7 changes: 5 additions & 2 deletions infinite/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
{
"name": "swr-infinite",
"version": "0.0.1",
"main": "./dist/index.cjs",
"main": "./dist/index.js",
"module": "./dist/index.esm.js",
"types": "./dist/infinite",
"exports": "./dist/index.mjs",
"exports": {
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
},
"peerDependencies": {
"swr": "*",
"react": "*"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"cache",
"fetch"
],
"main": "./dist/index.cjs",
"main": "./dist/index.js",
"module": "./dist/index.esm.js",
"exports": {
"./package.json": "./package.json",
Expand Down

0 comments on commit 4e285a6

Please sign in to comment.