We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47d5dd3 commit 8b05281Copy full SHA for 8b05281
shared/src/findBinary.ts
@@ -2,6 +2,7 @@ import * as fs from "fs";
2
import * as fsAsync from "fs/promises";
3
import * as path from "path";
4
import * as semver from "semver";
5
+import * as url from "url";
6
7
export type BinaryName =
8
| "bsc.exe"
@@ -115,7 +116,7 @@ export const findBinary = async ({
115
116
"..",
117
`@rescript/${target}/bin.js`,
118
);
- const { binPaths } = await import(targetPackagePath);
119
+ const { binPaths } = await import(url.fileURLToPath(targetPackagePath));
120
121
if (binary === "bsc.exe") {
122
binaryPath = binPaths.bsc_exe;
0 commit comments