From d47ee03f0ae58e53263e0fc8feae27748db4aab9 Mon Sep 17 00:00:00 2001 From: Segev Finer Date: Wed, 28 Feb 2024 09:55:56 +0200 Subject: [PATCH] fix: pass `--runtime napi` to `prebuild-install` when `binary.napi_versions` is set (#38) Co-authored-by: Daniel Lando --- lib/producer.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/producer.ts b/lib/producer.ts index c26e2f2a..ab87f998 100644 --- a/lib/producer.ts +++ b/lib/producer.ts @@ -235,6 +235,8 @@ function nativePrebuildInstall(target: Target, nodeFile: string) { if (napiVersions == null) { // TODO: consider target node version and supported n-api version options.push('--target', nodeVersion); + } else { + options.push('--runtime', 'napi'); } // run prebuild