-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy pathconstants.ts
47 lines (43 loc) · 1.29 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
41
42
43
44
45
46
47
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 bscNativeReScriptPartialPath = path.join(
"node_modules",
"rescript",
process.platform,
"bsc.exe"
);
export let bscNativePartialPath = path.join(
"node_modules",
"bs-platform",
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/rescript since we might need the watcher -w flag, which is only in the JS wrapper
export let rescriptNodePartialPath = path.join(
"node_modules",
".bin",
"rescript"
);
export let bsbNodePartialPath = path.join("node_modules", ".bin", "bsb");
export let bsbLock = ".bsb.lock";
export let bsconfigPartialPath = "bsconfig.json";
export let compilerDirPartialPath = path.join("lib", "bs");
export let compilerLogPartialPath = path.join("lib", "bs", ".compiler.log");
export let resExt = ".res";
export let resiExt = ".resi";
export let cmiExt = ".cmi";
export let startBuildAction = "Start Build";