diff --git a/.github/workflows/create-artifact.yml b/.github/workflows/create-artifact.yml index 7716312..8a26cb1 100644 --- a/.github/workflows/create-artifact.yml +++ b/.github/workflows/create-artifact.yml @@ -53,7 +53,7 @@ jobs: - name: Setup safe-chain run: | - npm i -g @aikidosec/safe-chain + npm i -g @aikidosec/safe-chain pkg safe-chain setup-ci - name: Install dependencies diff --git a/build.js b/build.js index 55ad3ec..4ef0481 100644 --- a/build.js +++ b/build.js @@ -71,13 +71,9 @@ async function copyAndModifyPackageJson() { function buildSafeChainBinary(target) { return new Promise((resolve, reject) => { - const pkg = spawn( - "npx", - ["pkg", "./build/package.json", `--target=${target}`], - { - stdio: "inherit", - } - ); + const pkg = spawn("pkg", ["./build/package.json", `--target=${target}`], { + stdio: "inherit", + }); pkg.on("close", (code) => { if (code !== 0) {