// @ts-check import * as path from "node:path"; /** * The project root path */ export const projectDir = path.resolve(import.meta.dirname, ".."); /** * path: `/compiler/` */ export const compilerRootDir = path.resolve(projectDir, "compiler"); /** * path: `/tests/` */ export const testDir = path.resolve(projectDir, "tests"); /** * path: `/tests/tests/` */ export const compilerTestDir = path.resolve(testDir, "tests"); /** * path: `/tests/build_tests/` */ export const buildTestDir = path.resolve(testDir, "build_tests"); /** * path: `/tests/docstring_tests/` */ export const docstringTestDir = path.resolve(testDir, "docstring_tests"); /** * path: `/tests/commonjs_tests/` */ export const commonjsTestDir = path.resolve(testDir, "commonjs_tests"); /** * path: `/compiler/common/bs_version.ml` */ export const compilerVersionFile = path.resolve( compilerRootDir, "common", "bs_version.ml", ); /** * path: `/packages/artifacts.json` */ export const artifactListFile = path.resolve( projectDir, "packages", "artifacts.json", ); /** * path: `/_build/install/default/bin/` */ export const compilerBinDir = path.resolve( projectDir, "_build", "install", "default", "bin", ); /** * path: `/_build/install/default/bin/ounit_tests[.exe]` */ export const ounitTestBin = path.join( compilerBinDir, process.platform === "win32" ? "ounit_tests.exe" : "ounit_tests", );