From e0ca60e7707b5896ce67301aefd1de4a76e3cf75 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 28 Apr 2020 12:35:23 -0400 Subject: BREAKING: Use LLVM target triple for Deno.build (#4948) Deno.build.os values have changed to correspond to standard LLVM target triples "win" -> "windows" "mac" -> "darwin" --- std/node/process.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'std/node/process.ts') diff --git a/std/node/process.ts b/std/node/process.ts index 89d383e8e..310a7e814 100644 --- a/std/node/process.ts +++ b/std/node/process.ts @@ -7,10 +7,7 @@ const versions = { ...Deno.version, }; -const osToPlatform = (os: Deno.OperatingSystem): string => - os === "win" ? "win32" : os === "mac" ? "darwin" : os; - -const platform = osToPlatform(Deno.build.os); +const platform = Deno.build.os === "windows" ? "win32" : Deno.build.os; const { arch } = Deno.build; -- cgit v1.2.3