Skip to content

Commit 089ea21

Browse files
committed
fix: invalid dir for native binaries
1 parent e7a9926 commit 089ea21

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/libnut-core/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ export interface libnut {
2424

2525
let libnut : libnut;
2626
if (process.platform === 'darwin') {
27-
libnut = require("osx/libnut.node");
27+
libnut = require("./osx/libnut.node");
2828

2929
} else if (process.platform === 'linux') {
30-
libnut = require("linux/libnut.node");
30+
libnut = require("./linux/libnut.node");
3131

3232
} else if (process.platform === 'win32') {
33-
libnut = require("windows/libnut.node");
33+
libnut = require("./windows/libnut.node");
3434

3535
} else {
3636
throw new Error('unsupported platform');

0 commit comments

Comments
 (0)