Skip to content

Commit

Permalink
Improved Exports for @sei-js/evm
Browse files Browse the repository at this point in the history
Due to inconsistencies in node versions and the way they resolve this package, this change removes the "export" field in the package.json so that default module resolution strategies are used by using the "main", "module", and "types" fields in the package.json.

all files from the "viem" and "ethers" directories are included in the default export and the dependencies are moved from peer dependencies to the regular dependencies field.
  • Loading branch information
codebycarson committed Jan 28, 2025
1 parent 343043c commit 0d5e252
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 23 deletions.
24 changes: 1 addition & 23 deletions packages/evm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,30 +31,8 @@
"publishConfig": {
"access": "public"
},
"dependencies": {},
"peerDependencies": {
"dependencies": {
"ethers": "^6.0.0",
"viem": "2.x"
},
"devDependencies": {
"ethers": "^6.0.0",
"viem": "2.x"
},
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts"
},
"./ethers": {
"import": "./dist/esm/ethers/index.js",
"require": "./dist/cjs/ethers/index.js",
"types": "./dist/types/ethers/index.d.ts"
},
"./viem": {
"import": "./dist/esm/viem/index.js",
"require": "./dist/cjs/viem/index.js",
"types": "./dist/types/viem/index.d.ts"
}
}
}
2 changes: 2 additions & 0 deletions packages/evm/src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
export * from './ethers';
export * from './precompiles';
export * from './viem';

0 comments on commit 0d5e252

Please sign in to comment.