UNPKG

@oazmi/build-tools

Version:

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

15 lines (14 loc) 518 B
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. // This module is browser compatible. import { isWindows } from "./_os.js"; import { resolve as posixResolve } from "./posix/resolve.js"; import { resolve as windowsResolve } from "./windows/resolve.js"; /** * Resolves path segments into a `path` * @param pathSegments to process to path */ export function resolve(...pathSegments) { return isWindows ? windowsResolve(...pathSegments) : posixResolve(...pathSegments); }