fix: use parent packages channel
This commit is contained in:
@ -5,11 +5,12 @@ channel=$(
|
|||||||
cd "$(dirname "$0")";
|
cd "$(dirname "$0")";
|
||||||
node -p '
|
node -p '
|
||||||
let p = [
|
let p = [
|
||||||
|
"../../package.json",
|
||||||
"../lib/node_modules/@solana/web3.js/package.json",
|
"../lib/node_modules/@solana/web3.js/package.json",
|
||||||
"../@solana/web3.js/package.json",
|
"../@solana/web3.js/package.json",
|
||||||
"../package.json"
|
"../package.json"
|
||||||
].find(require("fs").existsSync);
|
].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"]
|
require(p)["testnetDefaultChannel"]
|
||||||
'
|
'
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user