Skip to content
This repository was archived by the owner on Feb 19, 2026. It is now read-only.

Commit 5020475

Browse files
committed
Make 'rc.path' absolute
1 parent cca87fb commit 5020475

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

bin.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ if (rc.version) {
1717
process.exit(0)
1818
}
1919

20-
if (rc.path) process.chdir(rc.path)
21-
20+
if (rc.path) {
21+
rc.path = path.resolve(rc.path)
22+
process.chdir(rc.path)
23+
}
2224
if (rc.runtime === 'electron' && rc.target[0] === '4' && rc.abi === '64') {
2325
log.error(`Electron version ${rc.target} found - skipping prebuild-install work due to known ABI issue`)
2426
log.error('More information about this issue can be found at https://github.com/lgeiger/node-abi/issues/54')

0 commit comments

Comments
 (0)