Skip to content

Commit f7ed5b8

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

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-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" });

packages/artifacts.txt

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ README.md
77
cli/bin_path.js
88
cli/bsc
99
cli/rescript
10+
cli/rescript-tools
1011
cli/rescript_arg.js
1112
cli/rescript_bsb.js
1213
cli/rescript_dump.js

0 commit comments

Comments
 (0)