Skip to content

Commit

Permalink
fix: add node to package.json exports (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
JSerFeng authored Sep 4, 2023
1 parent 1b6f119 commit 3979805
Show file tree
Hide file tree
Showing 10 changed files with 3,486 additions and 3,818 deletions.
10 changes: 10 additions & 0 deletions .changeset/quiet-trees-exist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
'@modern-js-reduck/plugin-auto-actions': patch
'@modern-js-reduck/plugin-devtools': patch
'@modern-js-reduck/plugin-effects': patch
'@modern-js-reduck/plugin-immutable': patch
'@modern-js-reduck/react': patch
'@modern-js-reduck/store': patch
---

fix: add node to package.json exports
1 change: 1 addition & 0 deletions packages/plugins/auto-actions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"node": "./dist/cjs/index.js",
"default": "./dist/esm/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/plugins/devtools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"node": "./dist/cjs/index.js",
"default": "./dist/esm/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/plugins/effects/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"node": "./dist/cjs/index.js",
"default": "./dist/esm/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/plugins/immer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"node": "./dist/cjs/index.js",
"default": "./dist/esm/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/plugins/xstate-immer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"node": "./dist/cjs/index.js",
"default": "./dist/esm/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/plugins/xstate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"node": "./dist/cjs/index.js",
"default": "./dist/esm/index.js"
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"exports": {
".": {
"types": "./type.d.ts",
"node": "./dist/cjs/index.js",
"default": "./dist/esm/index.js"
}
},
Expand Down
3 changes: 3 additions & 0 deletions packages/store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,17 @@
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"node": "./dist/cjs/index.js",
"default": "./dist/esm/index.js"
},
"./types": {
"types": "./dist/types/types/index.d.ts",
"node": "./dist/cjs/types/index.js",
"default": "./dist/esm/types/index.js"
},
"./utils": {
"types": "./dist/types/utils/index.d.ts",
"node": "./dist/cjs/utils/index.js",
"default": "./dist/esm/utils/index.js"
}
},
Expand Down
Loading

0 comments on commit 3979805

Please sign in to comment.