Skip to content

Commit 40ecf3d

Browse files
committed
Fix rescript binary package import path
1 parent b3b26bf commit 40ecf3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ let findBinary = async (
115115
// TODO: export `binPaths` from `rescript` package so that we don't need to
116116
// copy the logic for figuring out `target`.
117117
const target = `${process.platform}-${process.arch}`;
118-
const targetPackagePath = path.join(rescriptDir, "..", `@rescript/${target}`)
118+
const targetPackagePath = path.join(rescriptDir, "..", `@rescript/${target}/bin.js`)
119119
const { binPaths } = await import(targetPackagePath);
120120

121121
if (binary == "bsc.exe") {

0 commit comments

Comments
 (0)