Skip to content

Commit

Permalink
fix(monobundle): exports without bun
Browse files Browse the repository at this point in the history
  • Loading branch information
morlay committed Mar 13, 2024
1 parent 29c0bec commit cffe425
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 8 deletions.
3 changes: 1 addition & 2 deletions nodedevpkg/monobundle/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@innoai-tech/monobundle",
"version": "0.13.2",
"version": "0.13.3",
"monobundle": {
"exports": {
".": "./src/index.ts",
Expand Down Expand Up @@ -35,7 +35,6 @@
},
"exports": {
".": {
"bun": "./src/index.ts",
"import": {
"types": "./src/index.ts",
"default": "./index.mjs"
Expand Down
2 changes: 0 additions & 2 deletions nodedevpkg/monobundle/src/bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,6 @@ const genExportsAndBin = (options?: MonoBundleOptions) => {
}

set(pkg, ["exports", e], {
// bun must on first
bun: entryFile,
import: {
types: `${entryFile}`,
default: `./${distName}.mjs`
Expand Down
3 changes: 0 additions & 3 deletions nodepkg/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,18 @@
],
"exports": {
".": {
"bun": "./src/index.ts",
"import": {
"types": "./src/index.ts",
"default": "./index.mjs"
}
},
"./loader": {
"bun": "./src/loader/index.ts",
"import": {
"types": "./src/loader/index.ts",
"default": "./loader.mjs"
}
},
"./vite-plugin-inject-config": {
"bun": "./src/vite-plugin-inject-config/index.ts",
"import": {
"types": "./src/vite-plugin-inject-config/index.ts",
"default": "./vite-plugin-inject-config.mjs"
Expand Down
1 change: 0 additions & 1 deletion nodepkg/fetcher/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
},
"exports": {
".": {
"bun": "./src/index.ts",
"import": {
"types": "./src/index.ts",
"default": "./index.mjs"
Expand Down

0 comments on commit cffe425

Please sign in to comment.