-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy pathconstants.ts
40 lines (37 loc) · 1.2 KB
/
constants.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import * as path from "path";
// See https://microsoft.github.io/language-server-protocol/specification Abstract Message
// version is fixed to 2.0
export let jsonrpcVersion = "2.0";
export let bscExePartialPath = path.join(
"node_modules",
"bs-platform",
process.platform,
"bsc.exe"
);
export let bscExeReScriptPartialPath = path.join(
"node_modules",
"rescript",
process.platform,
"bsc.exe"
);
export let analysisDevPath = path.join(
path.dirname(__dirname),
"..",
"analysis",
"rescript-editor-analysis.exe"
);
export let analysisProdPath = path.join(
path.dirname(__dirname),
"analysis_binaries",
process.platform,
"rescript-editor-analysis.exe"
);
// can't use the native bsb since we might need the watcher -w flag, which is only in the js wrapper
// export let bsbPartialPath = path.join('node_modules', 'bs-platform', process.platform, 'bsb.exe');
export let bsbNodePartialPath = path.join("node_modules", ".bin", "bsb");
export let bsbLock = ".bsb.lock";
export let bsconfigPartialPath = "bsconfig.json";
export let compilerLogPartialPath = path.join("lib", "bs", ".compiler.log");
export let resExt = ".res";
export let resiExt = ".resi";
export let startBuildAction = "Start Build";