diff --git a/js/build.ts b/js/build.ts index 347dd4e72c..b2f52dbc14 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 cd4ace4dfb..a9f5f20189 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[] = [];