mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-23 23:42:24 +00:00
15 lines
775 B
Diff
15 lines
775 B
Diff
|
diff --git a/node_modules/net-keepalive/node_modules/node-gyp-build/index.js b/node_modules/net-keepalive/node_modules/node-gyp-build/index.js
|
||
|
index 3e39703..5e84906 100644
|
||
|
--- a/node_modules/net-keepalive/node_modules/node-gyp-build/index.js
|
||
|
+++ b/node_modules/net-keepalive/node_modules/node-gyp-build/index.js
|
||
|
@@ -29,6 +29,9 @@ load.path = function (dir) {
|
||
|
if (process.env[name + '_PREBUILD']) dir = process.env[name + '_PREBUILD']
|
||
|
} catch (err) {}
|
||
|
|
||
|
+ // pkg fix: native node modules are located externally to the pkg executable
|
||
|
+ dir = dir.replace(/^\/snapshot\/.+?\/node_modules\//, path.dirname(process.execPath) + path.sep)
|
||
|
+
|
||
|
if (!prebuildsOnly) {
|
||
|
var release = getFirst(path.join(dir, 'build/Release'), matchBuild)
|
||
|
if (release) return release
|