Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion server/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,10 @@ let findBinary = async (
// TODO: export `binPaths` from `rescript` package so that we don't need to
// copy the logic for figuring out `target`.
const target = `${process.platform}-${process.arch}`;
// Use realpathSync to resolve symlinks, which is necessary for package
// managers like Deno and pnpm that use symlinked node_modules structures.
const targetPackagePath = path.join(
rescriptDir,
fs.realpathSync(rescriptDir),
"..",
`@rescript/${target}/bin.js`,
);
Expand Down
Loading