1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-27 09:39:08 -05:00

Add OSType enum (#1909)

This commit is contained in:
Vincent LE GOFF 2019-03-11 19:23:11 +01:00 committed by Ryan Dahl
parent 75a500ba81
commit 830ce93785
2 changed files with 9 additions and 2 deletions

View file

@ -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 */

View file

@ -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[] = [];