fix: use parent packages channel
This commit is contained in:
parent
56cad06568
commit
696067228f
|
@ -5,11 +5,12 @@ channel=$(
|
|||
cd "$(dirname "$0")";
|
||||
node -p '
|
||||
let p = [
|
||||
"../../package.json",
|
||||
"../lib/node_modules/@solana/web3.js/package.json",
|
||||
"../@solana/web3.js/package.json",
|
||||
"../package.json"
|
||||
].find(require("fs").existsSync);
|
||||
if (!p) throw new Error("Unable to locate solana-web3.js directory");
|
||||
if (!p) throw new Error("Unable to locate package.json");
|
||||
require(p)["testnetDefaultChannel"]
|
||||
'
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue