Skip to content

Commit

Permalink
fix: pass --runtime napi to prebuild-install when `binary.napi_ve…
Browse files Browse the repository at this point in the history
…rsions` is set (#38)

Co-authored-by: Daniel Lando <daniel.sorridi@gmail.com>
  • Loading branch information
segevfiner and robertsLando committed Feb 28, 2024
1 parent a3b18f8 commit d47ee03
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/producer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d47ee03

Please sign in to comment.