Skip to content

Commit f62ea80

Browse files
committed
Add rescript-editor-analysis and rescript-tools to rescript npm package
1 parent b547729 commit f62ea80

File tree

4 files changed

+35
-6
lines changed

4 files changed

+35
-6
lines changed

cli/bin_path.js

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ts-check
22

3-
var path = require("path");
3+
const path = require("path");
44

55
/**
66
* @type{string}
@@ -11,7 +11,7 @@ var path = require("path");
1111
* Also, we do not have Windows ARM binaries yet. But the x64 binaries do work on Windows 11 ARM.
1212
* So omit the architecture for Windows, too.
1313
*/
14-
var binDirName =
14+
const binDirName =
1515
process.arch === "x64" || process.platform === "win32"
1616
? process.platform
1717
: process.platform + process.arch;
@@ -20,25 +20,40 @@ var binDirName =
2020
*
2121
* @type{string}
2222
*/
23-
var binAbsolutePath = path.join(__dirname, "..", binDirName);
23+
const binAbsolutePath = path.join(__dirname, "..", binDirName);
2424

2525
/**
2626
* @type{string}
2727
*/
28-
var bsc_exe = path.join(binAbsolutePath, "bsc.exe");
28+
const bsc_exe = path.join(binAbsolutePath, "bsc.exe");
2929

3030
/**
3131
* @type{string}
3232
*/
33-
var ninja_exe = path.join(binAbsolutePath, "ninja.exe");
33+
const ninja_exe = path.join(binAbsolutePath, "ninja.exe");
3434

3535
/**
3636
* @type{string}
3737
*/
38-
var rescript_exe = path.join(binAbsolutePath, "rescript.exe");
38+
const rescript_exe = path.join(binAbsolutePath, "rescript.exe");
39+
40+
/**
41+
* @type{string}
42+
*/
43+
const rescript_tools_exe = path.join(binAbsolutePath, "rescript-tools.exe");
44+
45+
/**
46+
* @type{string}
47+
*/
48+
const rescript_editor_analysis_exe = path.join(
49+
binAbsolutePath,
50+
"rescript-editor-analysis.exe",
51+
);
3952

4053
exports.dirName = binDirName;
4154
exports.absolutePath = binAbsolutePath;
4255
exports.bsc_exe = bsc_exe;
4356
exports.ninja_exe = ninja_exe;
4457
exports.rescript_exe = rescript_exe;
58+
exports.rescript_tools_exe = rescript_tools_exe;
59+
exports.rescript_editor_analysis_exe = rescript_editor_analysis_exe;

packages/artifacts.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,15 @@ cli/rewatch
1616
darwin/bsb_helper.exe
1717
darwin/bsc.exe
1818
darwin/ninja.exe
19+
darwin/rescript-editor-analysis.exe
20+
darwin/rescript-tools.exe
1921
darwin/rescript.exe
2022
darwin/rewatch.exe
2123
darwinarm64/bsb_helper.exe
2224
darwinarm64/bsc.exe
2325
darwinarm64/ninja.exe
26+
darwinarm64/rescript-editor-analysis.exe
27+
darwinarm64/rescript-tools.exe
2428
darwinarm64/rescript.exe
2529
darwinarm64/rewatch.exe
2630
docs/docson/build-schema.json
@@ -1188,17 +1192,23 @@ lib/ocaml/WeakSet.res
11881192
linux/bsb_helper.exe
11891193
linux/bsc.exe
11901194
linux/ninja.exe
1195+
linux/rescript-editor-analysis.exe
1196+
linux/rescript-tools.exe
11911197
linux/rescript.exe
11921198
linux/rewatch.exe
11931199
linuxarm64/bsb_helper.exe
11941200
linuxarm64/bsc.exe
11951201
linuxarm64/ninja.exe
1202+
linuxarm64/rescript-editor-analysis.exe
1203+
linuxarm64/rescript-tools.exe
11961204
linuxarm64/rescript.exe
11971205
linuxarm64/rewatch.exe
11981206
ninja.COPYING
11991207
package.json
12001208
win32/bsb_helper.exe
12011209
win32/bsc.exe
12021210
win32/ninja.exe
1211+
win32/rescript-editor-analysis.exe
1212+
win32/rescript-tools.exe
12031213
win32/rescript.exe
12041214
win32/rewatch.exe

scripts/copyExes.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ function copyExe(dir, exe) {
3333

3434
if (process.argv.includes("-all") || process.argv.includes("-compiler")) {
3535
copyExe(duneBinDir, "rescript");
36+
copyExe(duneBinDir, "rescript-editor-analysis");
37+
copyExe(duneBinDir, "rescript-tools");
3638
copyExe(duneBinDir, "bsc");
3739
copyExe(duneBinDir, "bsb_helper");
3840
}

scripts/npmPack.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ function getFilesAddedByCI() {
6868
"bsc.exe",
6969
"ninja.exe",
7070
"rescript.exe",
71+
"rescript-editor-analysis.exe",
72+
"rescript-tools.exe",
7173
"rewatch.exe",
7274
];
7375

0 commit comments

Comments
 (0)