Skip to content

Commit

Permalink
types: fix immutable export paths (#2670)
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Jun 16, 2023
1 parent 8ffdc15 commit bf82311
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
9 changes: 7 additions & 2 deletions immutable/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
{
"main": "./dist/index.js",
"module": "./dist/index.esm.js",
"types": "./dist/immutable/index.d.ts",
"exports": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"module": "./dist/index.esm.js",
"require": "./dist/index.js"
},
"private": true,
"scripts": {
"watch": "bunchee -w",
Expand Down
2 changes: 1 addition & 1 deletion infinite/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"main": "./dist/index.js",
"module": "./dist/index.esm.js",
"types": "./dist/infinite/index.d.ts",
"types": "./dist/index.d.ts",
"exports": {
"types": "./dist/index.d.ts",
"react-server": "./dist/react-server.mjs",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
"require": "./core/dist/index.js"
},
"./infinite": {
"types": "./infinite/dist/infinite/index.d.ts",
"types": "./infinite/dist/index.d.ts",
"react-server": "./infinite/dist/react-server.mjs",
"import": "./infinite/dist/index.mjs",
"module": "./infinite/dist/index.esm.js",
"require": "./infinite/dist/index.js"
},
"./immutable": {
"types": "./immutable/dist/immutable/index.d.ts",
"types": "./immutable/dist/index.d.ts",
"import": "./immutable/dist/index.mjs",
"module": "./immutable/dist/index.esm.js",
"require": "./immutable/dist/index.js"
Expand Down

0 comments on commit bf82311

Please sign in to comment.