Skip to content

Commit bb92443

Browse files
authored
chore: export mjs and cjs in dapp and wallet client packages (#57)
1 parent 565c8ef commit bb92443

File tree

4 files changed

+34
-0
lines changed

4 files changed

+34
-0
lines changed

packages/dapp-client/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Added
11+
12+
- Export ESM paths ([#57](https://github.com/MetaMask/mobile-wallet-protocol/pull/57))
13+
1014
## [0.2.1]
1115

1216
### Changed

packages/dapp-client/package.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,20 @@
1111
},
1212
"license": "MIT",
1313
"main": "./dist/index.js",
14+
"module": "./dist/index.mjs",
1415
"types": "./dist/index.d.ts",
16+
"exports": {
17+
".": {
18+
"import": {
19+
"types": "./dist/index.d.mts",
20+
"default": "./dist/index.mjs"
21+
},
22+
"require": {
23+
"types": "./dist/index.d.ts",
24+
"default": "./dist/index.js"
25+
}
26+
}
27+
},
1528
"files": [
1629
"dist"
1730
],

packages/wallet-client/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Added
11+
12+
- Export ESM paths ([#57](https://github.com/MetaMask/mobile-wallet-protocol/pull/57))
13+
1014
## [0.2.1]
1115

1216
### Changed

packages/wallet-client/package.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,20 @@
1111
},
1212
"license": "MIT",
1313
"main": "./dist/index.js",
14+
"module": "./dist/index.mjs",
1415
"types": "./dist/index.d.ts",
16+
"exports": {
17+
".": {
18+
"import": {
19+
"types": "./dist/index.d.mts",
20+
"default": "./dist/index.mjs"
21+
},
22+
"require": {
23+
"types": "./dist/index.d.ts",
24+
"default": "./dist/index.js"
25+
}
26+
}
27+
},
1528
"files": [
1629
"dist"
1730
],

0 commit comments

Comments
 (0)