Skip to content

Commit bb7d342

Browse files
committed
cli/rescript.js -> cli/rescript-legacy.js
1 parent 9377555 commit bb7d342

File tree

10 files changed

+13
-10
lines changed

10 files changed

+13
-10
lines changed
File renamed without changes.

lib_dev/process.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,10 @@ export function setup(cwd = process.cwd()) {
158158
* @return {Promise<ExecResult>}
159159
*/
160160
rescript(command, args = [], options = {}) {
161-
const cliPath = path.join(import.meta.dirname, "../cli/rescript.js");
161+
const cliPath = path.join(
162+
import.meta.dirname,
163+
"../cli/rescript-legacy.js",
164+
);
162165
return exec("node", [cliPath, command, ...args].filter(Boolean), options);
163166
},
164167

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"bin": {
4141
"bsc": "cli/bsc.js",
4242
"bstracing": "cli/bstracing.js",
43-
"rescript": "cli/rescript.js",
43+
"rescript-legacy": "cli/rescript-legacy.js",
4444
"rescript-tools": "cli/rescript-tools.js",
4545
"rewatch": "cli/rewatch.js"
4646
},

packages/artifacts.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ cli/common/args.js
1010
cli/common/bins.js
1111
cli/common/bsb.js
1212
cli/rescript-tools.js
13-
cli/rescript.js
13+
cli/rescript-legacy.js
1414
cli/rescript/dump.js
1515
cli/rescript/format.js
1616
cli/rewatch.js

rewatch/src/helpers.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,13 +227,13 @@ pub fn get_rescript_legacy(root_path: &Path, workspace_root: Option<PathBuf>) ->
227227
match (
228228
root_path
229229
.join(&bin_dir)
230-
.join("rescript.js")
230+
.join("rescript-legacy.js")
231231
.canonicalize()
232232
.map(StrippedVerbatimPath::to_stripped_verbatim_path),
233233
workspace_root.map(|workspace_root| {
234234
workspace_root
235235
.join(&bin_dir)
236-
.join("rescript.js")
236+
.join("rescript-legacy.js")
237237
.canonicalize()
238238
.map(StrippedVerbatimPath::to_stripped_verbatim_path)
239239
}),

rewatch/testrepo/yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ __metadata:
110110
bin:
111111
bsc: cli/bsc.js
112112
bstracing: cli/bstracing.js
113-
rescript: cli/rescript.js
113+
rescript: cli/rescript-legacy.js
114114
rescript-tools: cli/rescript-tools.js
115115
rewatch: cli/rewatch.js
116116
checksum: 10c0/97ad8615b1a1cbace61e050b65a10bbe280c77b4fe693b99aee7d3c6bb0b2ebd284db16a7aec3d65179267dc610a9737fdf74197f6322b1281113fd588fe1b32

scripts/buildRuntime.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/rescript.js clean && ../cli/rescript.js build)
5+
(cd runtime && ../cli/rescript-legacy.js clean && ../cli/rescript-legacy.js build)
66

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

scripts/format.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ shopt -s extglob
55
dune build @fmt --auto-promote
66

77
files=$(find runtime tests -type f \( -name "*.res" -o -name "*.resi" \) ! -name "syntaxErrors*" ! -name "generated_mocha_test.res" ! -path "tests/syntax_tests*" ! -path "tests/analysis_tests/tests*" ! -path "*/node_modules/*")
8-
./cli/rescript.js format $files
8+
./cli/rescript-legacy.js format $files
99

1010
yarn format

scripts/format_check.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ case "$(uname -s)" in
1818

1919
echo "Checking ReScript code formatting..."
2020
files=$(find runtime tests -type f \( -name "*.res" -o -name "*.resi" \) ! -name "syntaxErrors*" ! -name "generated_mocha_test.res" ! -path "tests/syntax_tests*" ! -path "tests/analysis_tests/tests*" ! -path "*/node_modules/*")
21-
if ./cli/rescript.js format -check $files; then
21+
if ./cli/rescript-legacy.js format -check $files; then
2222
printf "${successGreen}✅ ReScript code formatting ok.${reset}\n"
2323
else
2424
printf "${warningYellow}⚠️ ReScript code formatting issues found. Run 'make format' to fix.${reset}\n"

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2534,7 +2534,7 @@ __metadata:
25342534
bin:
25352535
bsc: cli/bsc.js
25362536
bstracing: cli/bstracing.js
2537-
rescript: cli/rescript.js
2537+
rescript-legacy: cli/rescript-legacy.js
25382538
rescript-tools: cli/rescript-tools.js
25392539
rewatch: cli/rewatch.js
25402540
languageName: unknown

0 commit comments

Comments
 (0)