diff options
author | Vincent LE GOFF <g_n_s@hotmail.fr> | 2019-03-11 19:23:11 +0100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-03-11 14:23:11 -0400 |
commit | 830ce9378538a2617145592d7905d7a3de7f127a (patch) | |
tree | 136270b29d4afe78d1a760994d5eb6cb2927bc4f /js | |
parent | 75a500ba81d50c77c58c8ec0c1ff62769f5eeb4c (diff) |
Add OSType enum (#1909)
Diffstat (limited to 'js')
-rw-r--r-- | js/build.ts | 9 | ||||
-rw-r--r-- | js/deno.ts | 2 |
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[] = []; |