Skip to content

Commit 7f8b3b5

Browse files
committed
expose rescript-editor-analysis and use it
1 parent d8b10ea commit 7f8b3b5

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

cli/rescript-editor-analysis.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env node
2+
3+
// @ts-check
4+
5+
import * as child_process from "node:child_process";
6+
7+
import { rescript_editor_analysis_exe } from "./common/bins.js";
8+
9+
const args = process.argv.slice(2);
10+
11+
child_process.spawnSync(rescript_editor_analysis_exe, args, {
12+
stdio: "inherit",
13+
});

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"bsc": "cli/bsc.js",
4242
"bstracing": "cli/bstracing.js",
4343
"rescript": "cli/rescript.js",
44+
"rescript-editor-analysis": "cli/rescript-editor-analysis.js",
4445
"rescript-tools": "cli/rescript-tools.js",
4546
"rewatch": "cli/rewatch.js"
4647
},

yarn.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2511,6 +2511,7 @@ __metadata:
25112511
bsc: cli/bsc.js
25122512
bstracing: cli/bstracing.js
25132513
rescript: cli/rescript.js
2514+
rescript-editor-analysis: cli/rescript-editor-analysis.js
25142515
rescript-tools: cli/rescript-tools.js
25152516
rewatch: cli/rewatch.js
25162517
languageName: unknown

0 commit comments

Comments
 (0)