Skip to content

Commit a46d1b4

Browse files
committed
fix: use path.dirname to resolve loading issue on windows
1 parent 910a82d commit a46d1b4

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

lib/load-addon.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/load-addon.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/load-addon.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ import fs from "fs"
44
function findAddon(): any | undefined {
55
try {
66
const addonParentDir = path.join(
7-
__dirname,
8-
"..",
7+
path.dirname(__dirname),
98
"build",
109
process.platform,
1110
process.arch,

0 commit comments

Comments
 (0)