Skip to content

Commit

Permalink
fix: use absolute paths for the scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Jun 14, 2024
1 parent 9bcfec9 commit 4a173b4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ var os = require('os')
var path = require('path')

if (!buildFromSource()) {
proc.exec(process.execPath, ['node-gyp-build-test'], function (err, stdout, stderr) {
proc.exec(process.execPath, [path.join(__dirname, 'build-test.js')], function (err, stdout, stderr) {
console.log(stdout)
if (err) {
if (verbose()) console.error(stderr)
preinstall()
Expand Down Expand Up @@ -36,7 +37,7 @@ function build () {
function preinstall () {
try {
// try to load the prebuild
const load = require('node-gyp-build/index.js')
const load = require(path.join(__dirname, 'index.js'))
load()
} catch (err) {
// report the error and fall to a build
Expand Down

0 comments on commit 4a173b4

Please sign in to comment.