From 7b22dec0fa6c83e0bd8f6ebee38c05001b61e408 Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Tue, 10 Sep 2019 02:58:36 +0900 Subject: fix: replace Deno.platform usages (denoland/deno_std#590) Original: https://github.com/denoland/deno_std/commit/0e6f163ac6a5a03f45a90960a6f1193ee2718fe3 --- installer/mod.ts | 2 +- installer/test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'installer') diff --git a/installer/mod.ts b/installer/mod.ts index d6ebedbd4..1b9217cd4 100644 --- a/installer/mod.ts +++ b/installer/mod.ts @@ -10,7 +10,7 @@ const encoder = new TextEncoder(); const decoder = new TextDecoder("utf-8"); // Regular expression to test disk driver letter. eg "C:\\User\username\path\to" const driverLetterReg = /^[c-z]:/i; -const isWindows = Deno.platform.os === "win"; +const isWindows = Deno.build.os === "win"; function showHelp(): void { console.log(`deno installer diff --git a/installer/test.ts b/installer/test.ts index 2fd36e91e..bfe9bf652 100644 --- a/installer/test.ts +++ b/installer/test.ts @@ -10,7 +10,7 @@ import * as fs from "../fs/mod.ts"; import { install, isRemoteUrl } from "./mod.ts"; let fileServer: Deno.Process; -const isWindows = Deno.platform.os === "win"; +const isWindows = Deno.build.os === "win"; // copied from `http/file_server_test.ts` async function startFileServer(): Promise { -- cgit v1.2.3