Skip to content

Commit

Permalink
Add types file to package.json exports (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
lorisleiva authored Aug 31, 2023
1 parent edcaa10 commit 05e4f9f
Show file tree
Hide file tree
Showing 28 changed files with 57 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .changeset/lemon-humans-hammer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
'@metaplex-foundation/umi-transaction-factory-web3js': patch
'@metaplex-foundation/umi-rpc-chunk-get-accounts': patch
'@metaplex-foundation/umi-signer-wallet-adapters': patch
'@metaplex-foundation/umi-serializers-encodings': patch
'@metaplex-foundation/umi-serializer-data-view': patch
'@metaplex-foundation/umi-uploader-nft-storage': patch
'@metaplex-foundation/umi-serializers-numbers': patch
'@metaplex-foundation/umi-program-repository': patch
'@metaplex-foundation/umi-serializers-core': patch
'@metaplex-foundation/umi-bundle-defaults': patch
'@metaplex-foundation/umi-downloader-http': patch
'@metaplex-foundation/umi-serializer-beet': patch
'@metaplex-foundation/umi-uploader-bundlr': patch
'@metaplex-foundation/umi-web3js-adapters': patch
'@metaplex-foundation/umi-signer-derived': patch
'@metaplex-foundation/umi-bundle-tests': patch
'@metaplex-foundation/umi-eddsa-web3js': patch
'@metaplex-foundation/umi-storage-mock': patch
'@metaplex-foundation/umi-uploader-aws': patch
'@metaplex-foundation/umi-public-keys': patch
'@metaplex-foundation/umi-serializers': patch
'@metaplex-foundation/umi-http-fetch': patch
'@metaplex-foundation/umi-rpc-web3js': patch
'@metaplex-foundation/umi-options': patch
'@metaplex-foundation/umi-tasks': patch
'@metaplex-foundation/umi': patch
---

Add types file to package.json exports
1 change: 1 addition & 0 deletions configs/new-package-template/package.json.stub
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"types": "dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.mjs",
"require": "./dist/cjs/index.cjs"
}
Expand Down
1 change: 1 addition & 0 deletions packages/umi-bundle-defaults/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"types": "dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.mjs",
"require": "./dist/cjs/index.cjs"
}
Expand Down
1 change: 1 addition & 0 deletions packages/umi-bundle-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"types": "dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.mjs",
"require": "./dist/cjs/index.cjs"
}
Expand Down
1 change: 1 addition & 0 deletions packages/umi-downloader-http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"types": "dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.mjs",
"require": "./dist/cjs/index.cjs"
}
Expand Down
1 change: 1 addition & 0 deletions packages/umi-eddsa-web3js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"types": "dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.mjs",
"require": "./dist/cjs/index.cjs"
}
Expand Down
1 change: 1 addition & 0 deletions packages/umi-http-fetch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"types": "dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.mjs",
"require": "./dist/cjs/index.cjs"
}
Expand Down
1 change: 1 addition & 0 deletions packages/umi-options/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"types": "dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.mjs",
"require": "./dist/cjs/index.cjs"
}
Expand Down
1 change: 1 addition & 0 deletions packages/umi-program-repository/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"types": "dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.mjs",
"require": "./dist/cjs/index.cjs"
}
Expand Down
1 change: 1 addition & 0 deletions packages/umi-public-keys/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"types": "dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.mjs",
"require": "./dist/cjs/index.cjs"
}
Expand Down
1 change: 1 addition & 0 deletions packages/umi-rpc-chunk-get-accounts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"types": "dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.mjs",
"require": "./dist/cjs/index.cjs"
}
Expand Down
1 change: 1 addition & 0 deletions packages/umi-rpc-web3js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"types": "dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.mjs",
"require": "./dist/cjs/index.cjs"
}
Expand Down
1 change: 1 addition & 0 deletions packages/umi-serializer-beet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"types": "dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.mjs",
"require": "./dist/cjs/index.cjs"
}
Expand Down
1 change: 1 addition & 0 deletions packages/umi-serializer-data-view/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"types": "dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.mjs",
"require": "./dist/cjs/index.cjs"
}
Expand Down
1 change: 1 addition & 0 deletions packages/umi-serializers-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"types": "dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.mjs",
"require": "./dist/cjs/index.cjs"
}
Expand Down
1 change: 1 addition & 0 deletions packages/umi-serializers-encodings/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"types": "dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.mjs",
"require": "./dist/cjs/index.cjs"
}
Expand Down
1 change: 1 addition & 0 deletions packages/umi-serializers-numbers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"types": "dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.mjs",
"require": "./dist/cjs/index.cjs"
}
Expand Down
1 change: 1 addition & 0 deletions packages/umi-serializers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"types": "dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.mjs",
"require": "./dist/cjs/index.cjs"
}
Expand Down
1 change: 1 addition & 0 deletions packages/umi-signer-derived/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"types": "dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.mjs",
"require": "./dist/cjs/index.cjs"
}
Expand Down
1 change: 1 addition & 0 deletions packages/umi-signer-wallet-adapters/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"types": "dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.mjs",
"require": "./dist/cjs/index.cjs"
}
Expand Down
1 change: 1 addition & 0 deletions packages/umi-storage-mock/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"types": "dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.mjs",
"require": "./dist/cjs/index.cjs"
}
Expand Down
1 change: 1 addition & 0 deletions packages/umi-tasks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"types": "dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.mjs",
"require": "./dist/cjs/index.cjs"
}
Expand Down
1 change: 1 addition & 0 deletions packages/umi-transaction-factory-web3js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"types": "dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.mjs",
"require": "./dist/cjs/index.cjs"
}
Expand Down
1 change: 1 addition & 0 deletions packages/umi-uploader-aws/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"types": "dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.mjs",
"require": "./dist/cjs/index.cjs"
}
Expand Down
1 change: 1 addition & 0 deletions packages/umi-uploader-bundlr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"types": "dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.mjs",
"require": "./dist/cjs/index.cjs"
}
Expand Down
1 change: 1 addition & 0 deletions packages/umi-uploader-nft-storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"types": "dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.mjs",
"require": "./dist/cjs/index.cjs"
}
Expand Down
1 change: 1 addition & 0 deletions packages/umi-web3js-adapters/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"types": "dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.mjs",
"require": "./dist/cjs/index.cjs"
}
Expand Down
1 change: 1 addition & 0 deletions packages/umi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"types": "dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.mjs",
"require": "./dist/cjs/index.cjs"
},
Expand Down

0 comments on commit 05e4f9f

Please sign in to comment.