Skip to content

Commit

Permalink
chore: fix package exports field (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa authored Nov 24, 2024
1 parent a4b178e commit 6439b56
Show file tree
Hide file tree
Showing 12 changed files with 42 additions and 42 deletions.
12 changes: 6 additions & 6 deletions packages/json-extra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@
"type": "module",
"exports": {
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
"default": "./dist/index.js"
},
"./reference": {
"import": "./dist/reference.js",
"types": "./dist/reference.d.ts",
"require": "./dist/reference.cjs",
"types": "./dist/reference.d.ts"
"default": "./dist/reference.js"
},
"./stream": {
"import": "./dist/stream.js",
"types": "./dist/stream.d.ts",
"require": "./dist/stream.cjs",
"types": "./dist/stream.d.ts"
"default": "./dist/stream.js"
}
},
"main": "./dist/index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/query-proxy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"type": "module",
"exports": {
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
"default": "./dist/index.js"
}
},
"main": "./dist/index.js",
Expand Down
8 changes: 4 additions & 4 deletions packages/theme-script/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
"type": "module",
"exports": {
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
"default": "./dist/index.js"
},
"./dist/vite": {
"import": "./dist/vite.js",
"types": "./dist/vite.d.ts",
"require": "./dist/vite.cjs",
"types": "./dist/vite.d.ts"
"default": "./dist/vite.js"
}
},
"main": "./dist/index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/tiny-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"type": "module",
"exports": {
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
"default": "./dist/index.js"
}
},
"main": "./dist/index.js",
Expand Down
8 changes: 4 additions & 4 deletions packages/tiny-jwt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
"type": "module",
"exports": {
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
"default": "./dist/index.js"
},
"./dist/polyfill-node": {
"import": "./dist/polyfill-node.js",
"types": "./dist/polyfill-node.d.ts",
"require": "./dist/polyfill-node.cjs",
"types": "./dist/polyfill-node.d.ts"
"default": "./dist/polyfill-node.js"
}
},
"main": "./dist/index.js",
Expand Down
20 changes: 10 additions & 10 deletions packages/tiny-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,29 @@
"type": "module",
"exports": {
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
"default": "./dist/index.js"
},
"./jsx-runtime": {
"import": "./dist/helper/jsx-runtime.js",
"types": "./dist/helper/jsx-runtime.d.ts",
"require": "./dist/helper/jsx-runtime.cjs",
"types": "./dist/helper/jsx-runtime.d.ts"
"default": "./dist/helper/jsx-runtime.js"
},
"./jsx-dev-runtime": {
"import": "./dist/helper/jsx-runtime.js",
"types": "./dist/helper/jsx-runtime.d.ts",
"require": "./dist/helper/jsx-runtime.cjs",
"types": "./dist/helper/jsx-runtime.d.ts"
"default": "./dist/helper/jsx-runtime.js"
},
"./hmr": {
"import": "./dist/hmr/index.js",
"types": "./dist/hmr/index.d.ts",
"require": "./dist/hmr/index.cjs",
"types": "./dist/hmr/index.d.ts"
"default": "./dist/hmr/index.js"
},
"./vite": {
"import": "./dist/plugins/vite.js",
"types": "./dist/plugins/vite.d.ts",
"require": "./dist/plugins/vite.cjs",
"types": "./dist/plugins/vite.d.ts"
"default": "./dist/plugins/vite.js"
}
},
"main": "./dist/index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/tiny-rpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"type": "module",
"exports": {
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
"default": "./dist/index.js"
}
},
"main": "./dist/index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/tiny-sql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"type": "module",
"exports": {
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
"default": "./dist/index.js"
}
},
"main": "./dist/index.js",
Expand Down
8 changes: 4 additions & 4 deletions packages/tiny-store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
"type": "module",
"exports": {
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
"default": "./dist/index.js"
},
"./dist/react": {
"import": "./dist/react.js",
"types": "./dist/react.d.ts",
"require": "./dist/react.cjs",
"types": "./dist/react.d.ts"
"default": "./dist/react.js"
}
},
"main": "./dist/index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/utils-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"type": "module",
"exports": {
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
"default": "./dist/index.js"
}
},
"main": "./dist/index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/utils-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"type": "module",
"exports": {
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
"default": "./dist/index.js"
}
},
"main": "./dist/index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"type": "module",
"exports": {
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
"default": "./dist/index.js"
}
},
"main": "./dist/index.js",
Expand Down

0 comments on commit 6439b56

Please sign in to comment.