Skip to content

Commit 5dc5074

Browse files
committed
Add rescript-tools cli wrapper script
1 parent ac5f8b0 commit 5dc5074

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

cli/rescript-tools

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env node
2+
//@ts-check
3+
"use strict";
4+
5+
const path = require("path");
6+
const child_process = require("child_process");
7+
8+
const { absolutePath: binAbsolutePath } = require("./bin_path");
9+
const rewatchExe = path.join(binAbsolutePath, "rescript-tools.exe");
10+
11+
const args = process.argv.slice(2);
12+
13+
child_process.spawnSync(rewatchExe, args, { stdio: "inherit" });

0 commit comments

Comments
 (0)