Skip to content

Commit

Permalink
feat: rexport viem and ethers adapters
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarenaldi committed Jan 8, 2025
1 parent cbe8183 commit 982fdb5
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 8 deletions.
44 changes: 38 additions & 6 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,31 @@
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"./ethers": {
"types": "./dist/ethers.d.cts",
"import": "./dist/ethers.js",
"require": "./dist/ethers.cjs"
},
"./viem": {
"types": "./dist/viem.d.cts",
"import": "./dist/viem.js",
"require": "./dist/viem.cjs"
}
},
"typesVersions": {
"*": {
"import": ["./dist/index.d.ts"],
"require": ["./dist/index.d.cts"]
"ethers": [
"./dist/ethers.d.ts"
],
"viem": [
"./dist/viem.d.ts"
]
}
},
"files": ["dist"],
"files": [
"dist"
],
"sideEffects": false,
"scripts": {
"build": "tsup",
Expand All @@ -34,27 +50,43 @@
"@lens-protocol/env": "workspace:*",
"@lens-protocol/graphql": "workspace:*",
"@lens-protocol/types": "workspace:*",
"urql": "^4.2.0"
"urql": "^4.2.1"
},
"devDependencies": {
"@testing-library/dom": "^10.4.0",
"@testing-library/react": "^16.0.1",
"@types/react": "^18.3.12",
"ethers": "^6.13.4",
"happy-dom": "^15.7.4",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"tsup": "^8.3.5",
"typescript": "^5.6.3",
"viem": "^2.22.4"
"viem": "^2.22.4",
"zksync-ethers": "^6.15.3"
},
"peerDependencies": {
"@types/react": "^18.3.12",
"ethers": "^6.13.4",
"react": "^18.3.1",
"viem": "^2.21.33"
"viem": "^2.21.33",
"zksync-ethers": "^6.15.3"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
},
"@lens-network/sdk": {
"optional": true
},
"ethers": {
"optional": true
},
"viem": {
"optional": true
},
"zksync-ethers": {
"optional": true
}
},
"license": "MIT"
Expand Down
1 change: 1 addition & 0 deletions packages/react/src/ethers.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from '@lens-protocol/client/ethers';
1 change: 1 addition & 0 deletions packages/react/src/viem.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from '@lens-protocol/client/viem';
2 changes: 1 addition & 1 deletion packages/react/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { defineConfig } from 'tsup';

export default defineConfig(() => ({
entry: ['src/index.ts'],
entry: ['src/index.ts', 'src/ethers.ts', 'src/viem.ts'],
outDir: 'dist',
splitting: false,
sourcemap: true,
Expand Down
8 changes: 7 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 982fdb5

Please sign in to comment.