Skip to content

Commit d2d9e5d

Browse files
committed
fix: use absolute paths for the scripts
1 parent 5ccfdf3 commit d2d9e5d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bin.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ var os = require('os')
55
var path = require('path')
66

77
if (!buildFromSource()) {
8-
proc.exec(process.execPath, ['node-gyp-build-test'], function (err, stdout, stderr) {
8+
proc.exec(process.execPath, [path.join(__dirname, 'build-test.js')], function (err, stdout, stderr) {
9+
console.log(stdout)
910
if (err) {
1011
if (verbose()) console.error(stderr)
1112
preinstall()
@@ -35,7 +36,7 @@ function build () {
3536
function preinstall () {
3637
try {
3738
// try to load the prebuild
38-
const load = require('node-gyp-build/index.js')
39+
const load = require(path.join(__dirname, 'index.js'))
3940
load()
4041
} catch (err) {
4142
// report the error and fall to a build

0 commit comments

Comments
 (0)