Skip to content

Commit

Permalink
Resolve pagefind scope correctly in the npm wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
bglw committed Sep 13, 2023
1 parent 6ca0526 commit d77c38e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
## Unreleased

* Fixed the new `pagefind` npm wrapper to use the `pagefind_extended` release, as documented.
* Change `microjson` git dependency to a `pagefind_microjson` crate dependency (for now) — #421 .

## v1.0.0 (September 13, 2023)

Expand Down
2 changes: 1 addition & 1 deletion wrappers/node/lib/resolveBinary.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function resolveBinaryPath(execnames = []) {
const executable = platform === 'windows' ? `${execname}.exe` : execname;

try {
return require.resolve(`@${execname}/${platform}-${cpu}/bin/${executable}`);
return require.resolve(`@pagefind/${platform}-${cpu}/bin/${executable}`);
} catch (e) { }
}

Expand Down

0 comments on commit d77c38e

Please sign in to comment.