Skip to content

Commit 66314d9

Browse files
committed
cli/rewatch.js -> cli/rescript.js
1 parent a8ebb3e commit 66314d9

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

cli/rescript.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
// @ts-check
44

55
import * as child_process from "node:child_process";
6-
import { rewatch_exe, bsc_exe } from "./common/bins.js";
6+
import { bsc_exe, rewatch_exe } from "./common/bins.js";
77

88
const args = process.argv.slice(2);
99

10-
const firstPositionalArgIndex = args.findIndex((arg) => !arg.startsWith("-"));
10+
const firstPositionalArgIndex = args.findIndex(arg => !arg.startsWith("-"));
1111

1212
try {
1313
if (firstPositionalArgIndex !== -1) {
@@ -25,7 +25,7 @@ try {
2525
[...subcommandWithArgs, "--bsc-path", bsc_exe],
2626
{
2727
stdio: "inherit",
28-
}
28+
},
2929
);
3030
} else {
3131
child_process.execFileSync(rewatch_exe, [...args], {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@
4040
"bin": {
4141
"bsc": "cli/bsc.js",
4242
"bstracing": "cli/bstracing.js",
43+
"rescript": "cli/rescript.js",
4344
"rescript-legacy": "cli/rescript-legacy.js",
44-
"rescript-tools": "cli/rescript-tools.js",
45-
"rewatch": "cli/rewatch.js"
45+
"rescript-tools": "cli/rescript-tools.js"
4646
},
4747
"scripts": {
4848
"test": "node scripts/test.js -all",

packages/artifacts.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ cli/bstracing.js
99
cli/common/args.js
1010
cli/common/bins.js
1111
cli/common/bsb.js
12-
cli/rescript-tools.js
1312
cli/rescript-legacy.js
14-
cli/rescript/dump.js
15-
cli/rescript/format.js
16-
cli/rewatch.js
13+
cli/rescript-legacy/dump.js
14+
cli/rescript-legacy/format.js
15+
cli/rescript-tools.js
16+
cli/rescript.js
1717
docs/docson/build-schema.json
1818
lib/es6/Belt.js
1919
lib/es6/Belt_Array.js

scripts/buildRuntimeRewatch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -e
33
shopt -s extglob
44

5-
(cd runtime && ../cli/rewatch.js clean && ../cli/rewatch.js build)
5+
(cd runtime && ../cli/rescript.js clean && ../cli/rescript.js build)
66

77
rm -f lib/es6/*.js lib/js/*.js lib/ocaml/*
88
mkdir -p lib/es6 lib/js lib/ocaml

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2534,9 +2534,9 @@ __metadata:
25342534
bin:
25352535
bsc: cli/bsc.js
25362536
bstracing: cli/bstracing.js
2537+
rescript: cli/rescript.js
25372538
rescript-legacy: cli/rescript-legacy.js
25382539
rescript-tools: cli/rescript-tools.js
2539-
rewatch: cli/rewatch.js
25402540
languageName: unknown
25412541
linkType: soft
25422542

0 commit comments

Comments
 (0)