Browse Source

updated all packages to use web3.js as a peer dependency

Ben Williams 3 years ago
parent
commit
a3e97a2b7a

+ 3 - 1
packages/core/base/package.json

@@ -26,8 +26,10 @@
         "build": "yarn clean && tsc -p tsconfig.json && tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json",
         "build": "yarn clean && tsc -p tsconfig.json && tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json",
         "postbuild": "echo '{\"type\":\"commonjs\"}' | npx json > lib/cjs/package.json && echo '{\"type\":\"module\"} ' | npx json > lib/esm/package.json"
         "postbuild": "echo '{\"type\":\"commonjs\"}' | npx json > lib/cjs/package.json && echo '{\"type\":\"module\"} ' | npx json > lib/esm/package.json"
     },
     },
+    "peerDependencies": {
+        "@solana/web3.js": "^1.36.0"
+    },
     "dependencies": {
     "dependencies": {
-        "@solana/web3.js": "^1.36.0",
         "eventemitter3": "^4.0.0"
         "eventemitter3": "^4.0.0"
     }
     }
 }
 }

+ 3 - 3
packages/core/react/package.json

@@ -28,11 +28,11 @@
         "postbuild": "echo '{\"type\":\"commonjs\"}' | npx json > lib/cjs/package.json && echo '{\"type\":\"module\"} ' | npx json > lib/esm/package.json"
         "postbuild": "echo '{\"type\":\"commonjs\"}' | npx json > lib/cjs/package.json && echo '{\"type\":\"module\"} ' | npx json > lib/esm/package.json"
     },
     },
     "peerDependencies": {
     "peerDependencies": {
-        "react": "^17.0.0"
+        "react": "^17.0.0",
+        "@solana/web3.js": "^1.36.0"
     },
     },
     "dependencies": {
     "dependencies": {
-        "@solana/wallet-adapter-base": "^0.9.4",
-        "@solana/web3.js": "^1.36.0"
+        "@solana/wallet-adapter-base": "^0.9.4"
     },
     },
     "devDependencies": {
     "devDependencies": {
         "@types/jest": "^27.0.0",
         "@types/jest": "^27.0.0",

+ 2 - 2
packages/ui/ant-design/package.json

@@ -32,13 +32,13 @@
     },
     },
     "peerDependencies": {
     "peerDependencies": {
         "react": "^17.0.0",
         "react": "^17.0.0",
-        "react-dom": "^17.0.0"
+        "react-dom": "^17.0.0",
+        "@solana/web3.js": "^1.36.0"
     },
     },
     "dependencies": {
     "dependencies": {
         "@ant-design/icons": "^4.0.0",
         "@ant-design/icons": "^4.0.0",
         "@solana/wallet-adapter-base": "^0.9.4",
         "@solana/wallet-adapter-base": "^0.9.4",
         "@solana/wallet-adapter-react": "^0.15.3",
         "@solana/wallet-adapter-react": "^0.15.3",
-        "@solana/web3.js": "^1.36.0",
         "antd": "^4.19.1"
         "antd": "^4.19.1"
     },
     },
     "devDependencies": {
     "devDependencies": {

+ 3 - 3
packages/ui/material-ui/package.json

@@ -28,14 +28,14 @@
     },
     },
     "peerDependencies": {
     "peerDependencies": {
         "react": "^17.0.0",
         "react": "^17.0.0",
-        "react-dom": "^17.0.0"
+        "react-dom": "^17.0.0",
+        "@solana/web3.js": "^1.36.0"
     },
     },
     "dependencies": {
     "dependencies": {
         "@mui/icons-material": "^5.5.0",
         "@mui/icons-material": "^5.5.0",
         "@mui/material": "^5.5.0",
         "@mui/material": "^5.5.0",
         "@solana/wallet-adapter-base": "^0.9.4",
         "@solana/wallet-adapter-base": "^0.9.4",
-        "@solana/wallet-adapter-react": "^0.15.3",
-        "@solana/web3.js": "^1.36.0"
+        "@solana/wallet-adapter-react": "^0.15.3"
     },
     },
     "devDependencies": {
     "devDependencies": {
         "@types/react": "^17.0.40",
         "@types/react": "^17.0.40",

+ 3 - 3
packages/ui/react-ui/package.json

@@ -32,12 +32,12 @@
     },
     },
     "peerDependencies": {
     "peerDependencies": {
         "react": "^17.0.0",
         "react": "^17.0.0",
-        "react-dom": "^17.0.0"
+        "react-dom": "^17.0.0",
+        "@solana/web3.js": "^1.36.0"
     },
     },
     "dependencies": {
     "dependencies": {
         "@solana/wallet-adapter-base": "^0.9.4",
         "@solana/wallet-adapter-base": "^0.9.4",
-        "@solana/wallet-adapter-react": "^0.15.3",
-        "@solana/web3.js": "^1.36.0"
+        "@solana/wallet-adapter-react": "^0.15.3"
     },
     },
     "devDependencies": {
     "devDependencies": {
         "@types/react": "^17.0.40",
         "@types/react": "^17.0.40",

+ 4 - 2
packages/wallets/bitkeep/package.json

@@ -26,8 +26,10 @@
         "build": "yarn clean && tsc -p tsconfig.json && tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json",
         "build": "yarn clean && tsc -p tsconfig.json && tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json",
         "postbuild": "echo '{\"type\":\"commonjs\"}' | npx json > lib/cjs/package.json && echo '{\"type\":\"module\"} ' | npx json > lib/esm/package.json"
         "postbuild": "echo '{\"type\":\"commonjs\"}' | npx json > lib/cjs/package.json && echo '{\"type\":\"module\"} ' | npx json > lib/esm/package.json"
     },
     },
-    "dependencies": {
-        "@solana/wallet-adapter-base": "^0.9.4",
+    "peerDependencies": {
         "@solana/web3.js": "^1.36.0"
         "@solana/web3.js": "^1.36.0"
+    },
+    "dependencies": {
+        "@solana/wallet-adapter-base": "^0.9.4"
     }
     }
 }
 }

+ 4 - 2
packages/wallets/bitpie/package.json

@@ -26,8 +26,10 @@
         "build": "yarn clean && tsc -p tsconfig.json && tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json",
         "build": "yarn clean && tsc -p tsconfig.json && tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json",
         "postbuild": "echo '{\"type\":\"commonjs\"}' | npx json > lib/cjs/package.json && echo '{\"type\":\"module\"} ' | npx json > lib/esm/package.json"
         "postbuild": "echo '{\"type\":\"commonjs\"}' | npx json > lib/cjs/package.json && echo '{\"type\":\"module\"} ' | npx json > lib/esm/package.json"
     },
     },
-    "dependencies": {
-        "@solana/wallet-adapter-base": "^0.9.4",
+    "peerDependencies": {
         "@solana/web3.js": "^1.36.0"
         "@solana/web3.js": "^1.36.0"
+    },
+    "dependencies": {
+        "@solana/wallet-adapter-base": "^0.9.4"
     }
     }
 }
 }

+ 4 - 2
packages/wallets/blocto/package.json

@@ -26,9 +26,11 @@
         "build": "yarn clean && tsc -p tsconfig.json && tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json",
         "build": "yarn clean && tsc -p tsconfig.json && tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json",
         "postbuild": "echo '{\"type\":\"commonjs\"}' | npx json > lib/cjs/package.json && echo '{\"type\":\"module\"} ' | npx json > lib/esm/package.json"
         "postbuild": "echo '{\"type\":\"commonjs\"}' | npx json > lib/cjs/package.json && echo '{\"type\":\"module\"} ' | npx json > lib/esm/package.json"
     },
     },
+    "peerDependencies": {
+        "@solana/web3.js": "^1.36.0"
+    },
     "dependencies": {
     "dependencies": {
         "@blocto/sdk": "^0.2.21",
         "@blocto/sdk": "^0.2.21",
-        "@solana/wallet-adapter-base": "^0.9.4",
-        "@solana/web3.js": "^1.36.0"
+        "@solana/wallet-adapter-base": "^0.9.4"
     }
     }
 }
 }

+ 4 - 2
packages/wallets/clover/package.json

@@ -26,8 +26,10 @@
         "build": "yarn clean && tsc -p tsconfig.json && tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json",
         "build": "yarn clean && tsc -p tsconfig.json && tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json",
         "postbuild": "echo '{\"type\":\"commonjs\"}' | npx json > lib/cjs/package.json && echo '{\"type\":\"module\"} ' | npx json > lib/esm/package.json"
         "postbuild": "echo '{\"type\":\"commonjs\"}' | npx json > lib/cjs/package.json && echo '{\"type\":\"module\"} ' | npx json > lib/esm/package.json"
     },
     },
-    "dependencies": {
-        "@solana/wallet-adapter-base": "^0.9.4",
+    "peerDependencies": {
         "@solana/web3.js": "^1.36.0"
         "@solana/web3.js": "^1.36.0"
+    },
+    "dependencies": {
+        "@solana/wallet-adapter-base": "^0.9.4"
     }
     }
 }
 }

+ 3 - 1
packages/wallets/coin98/package.json

@@ -26,9 +26,11 @@
         "build": "yarn clean && tsc -p tsconfig.json && tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json",
         "build": "yarn clean && tsc -p tsconfig.json && tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json",
         "postbuild": "echo '{\"type\":\"commonjs\"}' | npx json > lib/cjs/package.json && echo '{\"type\":\"module\"} ' | npx json > lib/esm/package.json"
         "postbuild": "echo '{\"type\":\"commonjs\"}' | npx json > lib/cjs/package.json && echo '{\"type\":\"module\"} ' | npx json > lib/esm/package.json"
     },
     },
+    "peerDependencies": {
+        "@solana/web3.js": "^1.36.0"
+    },
     "dependencies": {
     "dependencies": {
         "@solana/wallet-adapter-base": "^0.9.4",
         "@solana/wallet-adapter-base": "^0.9.4",
-        "@solana/web3.js": "^1.36.0",
         "bs58": "^4.0.0"
         "bs58": "^4.0.0"
     },
     },
     "devDependencies": {
     "devDependencies": {

+ 4 - 2
packages/wallets/coinhub/package.json

@@ -26,8 +26,10 @@
         "build": "yarn clean && tsc -p tsconfig.json && tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json",
         "build": "yarn clean && tsc -p tsconfig.json && tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json",
         "postbuild": "echo '{\"type\":\"commonjs\"}' | npx json > lib/cjs/package.json && echo '{\"type\":\"module\"} ' | npx json > lib/esm/package.json"
         "postbuild": "echo '{\"type\":\"commonjs\"}' | npx json > lib/cjs/package.json && echo '{\"type\":\"module\"} ' | npx json > lib/esm/package.json"
     },
     },
-    "dependencies": {
-        "@solana/wallet-adapter-base": "^0.9.4",
+    "peerDependencies": {
         "@solana/web3.js": "^1.36.0"
         "@solana/web3.js": "^1.36.0"
+    },
+    "dependencies": {
+        "@solana/wallet-adapter-base": "^0.9.4"
     }
     }
 }
 }

+ 4 - 2
packages/wallets/glow/package.json

@@ -26,8 +26,10 @@
         "build": "yarn clean && tsc -p tsconfig.json && tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json",
         "build": "yarn clean && tsc -p tsconfig.json && tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json",
         "postbuild": "echo '{\"type\":\"commonjs\"}' | npx json > lib/cjs/package.json && echo '{\"type\":\"module\"} ' | npx json > lib/esm/package.json"
         "postbuild": "echo '{\"type\":\"commonjs\"}' | npx json > lib/cjs/package.json && echo '{\"type\":\"module\"} ' | npx json > lib/esm/package.json"
     },
     },
-    "dependencies": {
-        "@solana/wallet-adapter-base": "^0.9.3",
+    "peerDependencies": {
         "@solana/web3.js": "^1.36.0"
         "@solana/web3.js": "^1.36.0"
+    },
+    "dependencies": {
+        "@solana/wallet-adapter-base": "^0.9.3"
     }
     }
 }
 }

+ 4 - 2
packages/wallets/huobi/package.json

@@ -26,8 +26,10 @@
         "build": "yarn clean && tsc -p tsconfig.json && tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json",
         "build": "yarn clean && tsc -p tsconfig.json && tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json",
         "postbuild": "echo '{\"type\":\"commonjs\"}' | npx json > lib/cjs/package.json && echo '{\"type\":\"module\"} ' | npx json > lib/esm/package.json"
         "postbuild": "echo '{\"type\":\"commonjs\"}' | npx json > lib/cjs/package.json && echo '{\"type\":\"module\"} ' | npx json > lib/esm/package.json"
     },
     },
-    "dependencies": {
-        "@solana/wallet-adapter-base": "^0.9.4",
+    "peerDependencies": {
         "@solana/web3.js": "^1.36.0"
         "@solana/web3.js": "^1.36.0"
+    },
+    "dependencies": {
+        "@solana/wallet-adapter-base": "^0.9.4"
     }
     }
 }
 }

+ 3 - 1
packages/wallets/ledger/package.json

@@ -26,11 +26,13 @@
         "build": "yarn clean && tsc -p tsconfig.json && tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json",
         "build": "yarn clean && tsc -p tsconfig.json && tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json",
         "postbuild": "echo '{\"type\":\"commonjs\"}' | npx json > lib/cjs/package.json && echo '{\"type\":\"module\"} ' | npx json > lib/esm/package.json"
         "postbuild": "echo '{\"type\":\"commonjs\"}' | npx json > lib/cjs/package.json && echo '{\"type\":\"module\"} ' | npx json > lib/esm/package.json"
     },
     },
+    "peerDependencies": {
+        "@solana/web3.js": "^1.36.0"
+    },
     "dependencies": {
     "dependencies": {
         "@ledgerhq/hw-transport": "^6.11.2",
         "@ledgerhq/hw-transport": "^6.11.2",
         "@ledgerhq/hw-transport-webhid": "^6.11.2",
         "@ledgerhq/hw-transport-webhid": "^6.11.2",
         "@solana/wallet-adapter-base": "^0.9.4",
         "@solana/wallet-adapter-base": "^0.9.4",
-        "@solana/web3.js": "^1.36.0",
         "buffer": "^6.0.3"
         "buffer": "^6.0.3"
     },
     },
     "devDependencies": {
     "devDependencies": {

+ 4 - 2
packages/wallets/mathwallet/package.json

@@ -26,8 +26,10 @@
         "build": "yarn clean && tsc -p tsconfig.json && tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json",
         "build": "yarn clean && tsc -p tsconfig.json && tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json",
         "postbuild": "echo '{\"type\":\"commonjs\"}' | npx json > lib/cjs/package.json && echo '{\"type\":\"module\"} ' | npx json > lib/esm/package.json"
         "postbuild": "echo '{\"type\":\"commonjs\"}' | npx json > lib/cjs/package.json && echo '{\"type\":\"module\"} ' | npx json > lib/esm/package.json"
     },
     },
-    "dependencies": {
-        "@solana/wallet-adapter-base": "^0.9.4",
+    "peerDependencies": {
         "@solana/web3.js": "^1.36.0"
         "@solana/web3.js": "^1.36.0"
+    },
+    "dependencies": {
+        "@solana/wallet-adapter-base": "^0.9.4"
     }
     }
 }
 }

+ 4 - 2
packages/wallets/phantom/package.json

@@ -26,8 +26,10 @@
         "build": "yarn clean && tsc -p tsconfig.json && tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json",
         "build": "yarn clean && tsc -p tsconfig.json && tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json",
         "postbuild": "echo '{\"type\":\"commonjs\"}' | npx json > lib/cjs/package.json && echo '{\"type\":\"module\"} ' | npx json > lib/esm/package.json"
         "postbuild": "echo '{\"type\":\"commonjs\"}' | npx json > lib/cjs/package.json && echo '{\"type\":\"module\"} ' | npx json > lib/esm/package.json"
     },
     },
-    "dependencies": {
-        "@solana/wallet-adapter-base": "^0.9.4",
+    "peerDependencies": {
         "@solana/web3.js": "^1.36.0"
         "@solana/web3.js": "^1.36.0"
+    },
+    "dependencies": {
+        "@solana/wallet-adapter-base": "^0.9.4"
     }
     }
 }
 }

+ 4 - 2
packages/wallets/safepal/package.json

@@ -26,8 +26,10 @@
         "build": "yarn clean && tsc -p tsconfig.json && tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json",
         "build": "yarn clean && tsc -p tsconfig.json && tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json",
         "postbuild": "echo '{\"type\":\"commonjs\"}' | npx json > lib/cjs/package.json && echo '{\"type\":\"module\"} ' | npx json > lib/esm/package.json"
         "postbuild": "echo '{\"type\":\"commonjs\"}' | npx json > lib/cjs/package.json && echo '{\"type\":\"module\"} ' | npx json > lib/esm/package.json"
     },
     },
-    "dependencies": {
-        "@solana/wallet-adapter-base": "^0.9.4",
+    "peerDependencies": {
         "@solana/web3.js": "^1.36.0"
         "@solana/web3.js": "^1.36.0"
+    },
+    "dependencies": {
+        "@solana/wallet-adapter-base": "^0.9.4"
     }
     }
 }
 }

+ 3 - 1
packages/wallets/slope/package.json

@@ -26,9 +26,11 @@
         "build": "yarn clean && tsc -p tsconfig.json && tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json",
         "build": "yarn clean && tsc -p tsconfig.json && tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json",
         "postbuild": "echo '{\"type\":\"commonjs\"}' | npx json > lib/cjs/package.json && echo '{\"type\":\"module\"} ' | npx json > lib/esm/package.json"
         "postbuild": "echo '{\"type\":\"commonjs\"}' | npx json > lib/cjs/package.json && echo '{\"type\":\"module\"} ' | npx json > lib/esm/package.json"
     },
     },
+    "peerDependencies": {
+        "@solana/web3.js": "^1.36.0"
+    },
     "dependencies": {
     "dependencies": {
         "@solana/wallet-adapter-base": "^0.9.4",
         "@solana/wallet-adapter-base": "^0.9.4",
-        "@solana/web3.js": "^1.36.0",
         "bs58": "^4.0.0"
         "bs58": "^4.0.0"
     },
     },
     "devDependencies": {
     "devDependencies": {

+ 3 - 1
packages/wallets/solflare/package.json

@@ -26,9 +26,11 @@
         "build": "yarn clean && tsc -p tsconfig.json && tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json",
         "build": "yarn clean && tsc -p tsconfig.json && tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json",
         "postbuild": "echo '{\"type\":\"commonjs\"}' | npx json > lib/cjs/package.json && echo '{\"type\":\"module\"} ' | npx json > lib/esm/package.json"
         "postbuild": "echo '{\"type\":\"commonjs\"}' | npx json > lib/cjs/package.json && echo '{\"type\":\"module\"} ' | npx json > lib/esm/package.json"
     },
     },
+    "peerDependencies": {
+        "@solana/web3.js": "^1.36.0"
+    },
     "dependencies": {
     "dependencies": {
         "@solana/wallet-adapter-base": "^0.9.4",
         "@solana/wallet-adapter-base": "^0.9.4",
-        "@solana/web3.js": "^1.36.0",
         "@solflare-wallet/sdk": "^1.0.11"
         "@solflare-wallet/sdk": "^1.0.11"
     }
     }
 }
 }

+ 4 - 2
packages/wallets/sollet/package.json

@@ -26,9 +26,11 @@
         "build": "yarn clean && tsc -p tsconfig.json && tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json",
         "build": "yarn clean && tsc -p tsconfig.json && tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json",
         "postbuild": "echo '{\"type\":\"commonjs\"}' | npx json > lib/cjs/package.json && echo '{\"type\":\"module\"} ' | npx json > lib/esm/package.json"
         "postbuild": "echo '{\"type\":\"commonjs\"}' | npx json > lib/cjs/package.json && echo '{\"type\":\"module\"} ' | npx json > lib/esm/package.json"
     },
     },
+    "peerDependencies": {
+        "@solana/web3.js": "^1.36.0"
+    },
     "dependencies": {
     "dependencies": {
         "@project-serum/sol-wallet-adapter": "^0.2.6",
         "@project-serum/sol-wallet-adapter": "^0.2.6",
-        "@solana/wallet-adapter-base": "^0.9.4",
-        "@solana/web3.js": "^1.36.0"
+        "@solana/wallet-adapter-base": "^0.9.4"
     }
     }
 }
 }

+ 4 - 2
packages/wallets/solong/package.json

@@ -26,8 +26,10 @@
         "build": "yarn clean && tsc -p tsconfig.json && tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json",
         "build": "yarn clean && tsc -p tsconfig.json && tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json",
         "postbuild": "echo '{\"type\":\"commonjs\"}' | npx json > lib/cjs/package.json && echo '{\"type\":\"module\"} ' | npx json > lib/esm/package.json"
         "postbuild": "echo '{\"type\":\"commonjs\"}' | npx json > lib/cjs/package.json && echo '{\"type\":\"module\"} ' | npx json > lib/esm/package.json"
     },
     },
-    "dependencies": {
-        "@solana/wallet-adapter-base": "^0.9.4",
+    "peerDependencies": {
         "@solana/web3.js": "^1.36.0"
         "@solana/web3.js": "^1.36.0"
+    },
+    "dependencies": {
+        "@solana/wallet-adapter-base": "^0.9.4"
     }
     }
 }
 }

+ 4 - 2
packages/wallets/tokenpocket/package.json

@@ -26,8 +26,10 @@
         "build": "yarn clean && tsc -p tsconfig.json && tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json",
         "build": "yarn clean && tsc -p tsconfig.json && tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json",
         "postbuild": "echo '{\"type\":\"commonjs\"}' | npx json > lib/cjs/package.json && echo '{\"type\":\"module\"} ' | npx json > lib/esm/package.json"
         "postbuild": "echo '{\"type\":\"commonjs\"}' | npx json > lib/cjs/package.json && echo '{\"type\":\"module\"} ' | npx json > lib/esm/package.json"
     },
     },
-    "dependencies": {
-        "@solana/wallet-adapter-base": "^0.9.4",
+    "peerDependencies": {
         "@solana/web3.js": "^1.36.0"
         "@solana/web3.js": "^1.36.0"
+    },
+    "dependencies": {
+        "@solana/wallet-adapter-base": "^0.9.4"
     }
     }
 }
 }

+ 3 - 1
packages/wallets/torus/package.json

@@ -26,9 +26,11 @@
         "build": "yarn clean && tsc -p tsconfig.json && tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json",
         "build": "yarn clean && tsc -p tsconfig.json && tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json",
         "postbuild": "echo '{\"type\":\"commonjs\"}' | npx json > lib/cjs/package.json && echo '{\"type\":\"module\"} ' | npx json > lib/esm/package.json"
         "postbuild": "echo '{\"type\":\"commonjs\"}' | npx json > lib/cjs/package.json && echo '{\"type\":\"module\"} ' | npx json > lib/esm/package.json"
     },
     },
+    "peerDependencies": {
+        "@solana/web3.js": "^1.36.0"
+    },
     "dependencies": {
     "dependencies": {
         "@solana/wallet-adapter-base": "^0.9.4",
         "@solana/wallet-adapter-base": "^0.9.4",
-        "@solana/web3.js": "^1.36.0",
         "@toruslabs/solana-embed": "^0.1.5",
         "@toruslabs/solana-embed": "^0.1.5",
         "assert": "^2.0.0",
         "assert": "^2.0.0",
         "process": "^0.11.10",
         "process": "^0.11.10",