From a01314111861e5f32dddff094ddbfc8e0137a3a1 Mon Sep 17 00:00:00 2001 From: Sander Declerck Date: Fri, 28 Nov 2025 10:55:29 +0100 Subject: [PATCH] Try to fix the build --- .github/workflows/create-artifact.yml | 2 +- build.js | 10 +++------- 2 files changed, 4 insertions(+), 8 deletions(-) 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) {