Skip to content

Commit

Permalink
fix: use path.dirname to resolve loading issue on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Oct 20, 2024
1 parent 910a82d commit a46d1b4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/load-addon.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/load-addon.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions src/load-addon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import fs from "fs"
function findAddon(): any | undefined {
try {
const addonParentDir = path.join(
__dirname,
"..",
path.dirname(__dirname),
"build",
process.platform,
process.arch,
Expand Down

0 comments on commit a46d1b4

Please sign in to comment.