Skip to content

Commit d47ee03

Browse files
fix: pass --runtime napi to prebuild-install when binary.napi_versions is set (#38)
Co-authored-by: Daniel Lando <daniel.sorridi@gmail.com>
1 parent a3b18f8 commit d47ee03

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/producer.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,8 @@ function nativePrebuildInstall(target: Target, nodeFile: string) {
235235
if (napiVersions == null) {
236236
// TODO: consider target node version and supported n-api version
237237
options.push('--target', nodeVersion);
238+
} else {
239+
options.push('--runtime', 'napi');
238240
}
239241

240242
// run prebuild

0 commit comments

Comments
 (0)