summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/build.ts9
-rw-r--r--js/deno.ts2
2 files changed, 9 insertions, 2 deletions
diff --git a/js/build.ts b/js/build.ts
index 347dd4e72..b2f52dbc1 100644
--- a/js/build.ts
+++ b/js/build.ts
@@ -7,12 +7,19 @@ export interface BuildInfo {
arch: "x64";
/** The operating system platform. */
- os: "mac" | "win" | "linux";
+ os: OSType;
/** The GN build arguments */
gnArgs: string;
}
+/** The operating system platform. */
+export enum OSType {
+ mac = "mac",
+ win = "win",
+ linux = "linux"
+}
+
// 'build' is injected by rollup.config.js at compile time.
export const build: BuildInfo = {
/* eslint-disable @typescript-eslint/no-explicit-any */
diff --git a/js/deno.ts b/js/deno.ts
index cd4ace4df..a9f5f2018 100644
--- a/js/deno.ts
+++ b/js/deno.ts
@@ -63,7 +63,7 @@ export { metrics, Metrics } from "./metrics";
export { resources } from "./resources";
export { run, RunOptions, Process, ProcessStatus } from "./process";
export { inspect } from "./console";
-export { build, platform } from "./build";
+export { build, platform, OSType } from "./build";
export { version } from "./version";
export const args: string[] = [];