forked from rescript-lang/rescript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpaths.js
More file actions
101 lines (84 loc) · 2.06 KB
/
paths.js
File metadata and controls
101 lines (84 loc) · 2.06 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
// @ts-check
import * as path from "node:path";
/**
* The project root path
*/
export const projectDir = path.resolve(import.meta.dirname, "..");
/**
* path: `<projectDir>/compiler/`
*/
export const compilerRootDir = path.resolve(projectDir, "compiler");
/**
* path: `<projectDir>/runtime/`
*/
export const runtimeDir = path.resolve(projectDir, "runtime");
/**
* path: `<projectDir>/lib/js/`
*/
export const runtimeCjsOutputDir = path.resolve(projectDir, "lib", "js");
/**
* path: `<projectDir>/lib/es6/`
*/
export const runtimeEsmOutputDir = path.resolve(projectDir, "lib", "es6");
/**
* path: `<projectDir>/rewatch/`
*/
export const rewatchDir = path.resolve(projectDir, "rewatch");
/**
* path: `<projectDir>/tests/`
*/
export const testDir = path.resolve(projectDir, "tests");
/**
* path: `<projectDir>/tests/tests/`
*/
export const compilerTestDir = path.resolve(testDir, "tests");
/**
* path: `<projectDir>/tests/build_tests/`
*/
export const buildTestDir = path.resolve(testDir, "build_tests");
/**
* path: `<projectDir>/tests/docstring_tests/`
*/
export const docstringTestDir = path.resolve(testDir, "docstring_tests");
/**
* path: `<projectDir>/tests/commonjs_tests/`
*/
export const commonjsTestDir = path.resolve(testDir, "commonjs_tests");
/**
* path: `<projectDir>/compiler/common/bs_version.ml`
*/
export const compilerVersionFile = path.resolve(
compilerRootDir,
"common",
"bs_version.ml",
);
/**
* path: `<projectDir>/packages/artifacts.json`
*/
export const artifactListFile = path.resolve(
projectDir,
"packages",
"artifacts.json",
);
/**
* path: `<projectDir>/_build/install/default/bin/`
*/
export const compilerBinDir = path.resolve(
projectDir,
"_build",
"install",
"default",
"bin",
);
/**
* path: `<projectDir>/_build/install/default/bin/ounit_tests`
*/
export const ounitTestBin = path.join(compilerBinDir, "ounit_tests");
/**
* path: `<projectDir>/tests/gentype_tests/typescript-react-example/`
*/
export const gentypeExampleDir = path.resolve(
testDir,
"gentype_tests",
"typescript-react-example",
);