From b592e59d42060c046cde83e865126a5ea063b6e8 Mon Sep 17 00:00:00 2001 From: Christina Ying Wang Date: Thu, 3 Oct 2024 13:34:28 -0700 Subject: [PATCH] Use --fallback-to-build=true with node-pre-gyp Change-type: patch Signed-off-by: Christina Ying Wang --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 18668a9..a2b5923 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "build:rust": "RUSTFLAGS='-C target-feature=-crt-static' npx cargo-cp-artifact -ac balena-systemd ./native/index.node -- cargo build --message-format=json-render-diagnostics", "build:rust:debug": "npm run build:rust --", "build:rust:release": "npm run build:rust -- --release", - "install": "node-pre-gyp install --fallback-to-build=false || (npm run build:rust:release && cargo clean)", + "install": "node-pre-gyp install --fallback-to-build=true || (npm run build:rust:release && cargo clean)", "test": "echo 'No tests yet'", "test:integration": "mocha -r ts-node/register --bail --reporter spec tests/**/*.spec.ts", "test:compose": "docker compose -f docker-compose.test.yml up --build --remove-orphans --exit-code-from=sut ; npm run compose:down",