Skip to content

Commit

Permalink
fix: exports default (#1484)
Browse files Browse the repository at this point in the history
* fix: package exports

* chore: changesets
  • Loading branch information
VanishMax authored Jul 17, 2024
1 parent 0dac17c commit 3aaead1
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 18 deletions.
10 changes: 10 additions & 0 deletions .changeset/curly-frogs-grin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
'@penumbra-zone/transport-chrome': patch
'@penumbra-zone/services': patch
'@penumbra-zone/storage': patch
'@penumbra-zone/crypto-web': patch
'@penumbra-zone/query': patch
'@penumbra-zone/types': patch
---

Move the "default" option in package.json exports field to the last
4 changes: 2 additions & 2 deletions packages/crypto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"publishConfig": {
"exports": {
"./*": {
"default": "./dist/*.js",
"types": "./dist/*.d.ts"
"types": "./dist/*.d.ts",
"default": "./dist/*.js"
}
}
},
Expand Down
4 changes: 2 additions & 2 deletions packages/query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"publishConfig": {
"exports": {
"./*": {
"default": "./dist/*.js",
"types": "./dist/*.d.ts"
"types": "./dist/*.d.ts",
"default": "./dist/*.js"
}
}
},
Expand Down
8 changes: 4 additions & 4 deletions packages/services/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
"publishConfig": {
"exports": {
"./ctx/*": {
"default": "./dist/ctx/*.js",
"types": "./dist/ctx/*.d.ts"
"types": "./dist/ctx/*.d.ts",
"default": "./dist/ctx/*.js"
},
"./*": {
"default": "./dist/*/index.js",
"types": "./dist/*/index.d.ts"
"types": "./dist/*/index.d.ts",
"default": "./dist/*/index.js"
}
}
},
Expand Down
4 changes: 2 additions & 2 deletions packages/storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"publishConfig": {
"exports": {
"./indexed-db": {
"default": "./dist/indexed-db/index.js",
"types": "./dist/indexed-db/index.d.ts"
"types": "./dist/indexed-db/index.d.ts",
"default": "./dist/indexed-db/index.js"
}
}
},
Expand Down
4 changes: 2 additions & 2 deletions packages/transport-chrome/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
"publishConfig": {
"exports": {
"./*": {
"default": "./dist/*.js",
"types": "./dist/*.d.ts"
"types": "./dist/*.d.ts",
"default": "./dist/*.js"
}
}
},
Expand Down
12 changes: 6 additions & 6 deletions packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@
"dist"
],
"exports": {
"./*": "./src/*.ts",
"./internal-msg/*": "./src/internal-msg/*.ts"
"./internal-msg/*": "./src/internal-msg/*.ts",
"./*": "./src/*.ts"
},
"publishConfig": {
"exports": {
"./*": {
"default": "./dist/*.js",
"types": "./dist/*.d.ts"
"types": "./dist/*.d.ts",
"default": "./dist/*.js"
},
"./internal-msg/*": {
"default": "./dist/internal-msg/*.js",
"types": "./dist/internal-msg/*.d.ts"
"types": "./dist/internal-msg/*.d.ts",
"default": "./dist/internal-msg/*.js"
}
}
},
Expand Down

0 comments on commit 3aaead1

Please sign in to comment.