Skip to content

Commit 91ae7ff

Browse files
committed
fix: run ReScript CLI through Node
1 parent f21853a commit 91ae7ff

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

‎scripts/check-features.mjs‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,15 +145,10 @@ const validateConfig = (config) => {
145145
];
146146
};
147147

148-
const rescriptExecutable = path.join(
149-
repoRoot,
150-
"node_modules",
151-
".bin",
152-
process.platform === "win32" ? "rescript.cmd" : "rescript",
153-
);
148+
const rescriptCliPath = path.join(repoRoot, "node_modules", "rescript", "cli", "rescript.js");
154149

155150
const runRescript = (args) =>
156-
spawnSync(rescriptExecutable, args, {
151+
spawnSync(process.execPath, [rescriptCliPath, ...args], {
157152
cwd: repoRoot,
158153
encoding: "utf8",
159154
});

0 commit comments

Comments
 (0)