UNPKG

@oazmi/build-tools

Version:

general deno build tool scripts which I practically use in all of my typescript repos

10 lines (9 loc) 511 B
// deno-lint-ignore-file no-explicit-any // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. // This module is browser compatible. // Check Deno, then the remaining runtimes (e.g. Node, Bun and the browser) import * as dntShim from "../../../../../_dnt.shims.js"; export const isWindows = dntShim.dntGlobalThis.Deno?.build.os === "windows" || dntShim.dntGlobalThis.navigator?.platform?.startsWith("Win") || dntShim.dntGlobalThis.process?.platform?.startsWith("win") || false;