fix: use parent packages channel

This commit is contained in:
Jack May 2019-12-12 22:52:54 -08:00 committed by Michael Vines
parent 56cad06568
commit 696067228f
1 changed files with 2 additions and 1 deletions

View File

@ -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"]
'
)