@lonu/stc
Version:
A tool for converting OpenApi/Swagger/Apifox into code.
12 lines (11 loc) • 404 B
JavaScript
// Copyright 2018-2026 the Deno authors. MIT license.
import * as dntShim from "../../../../../../_dnt.shims.js";
export function cwd(errorMessage) {
// deno-lint-ignore no-explicit-any
const global = dntShim.dntGlobalThis;
const getCwd = global.process?.cwd ?? global.Deno?.cwd;
if (typeof getCwd !== "function") {
throw new TypeError(errorMessage);
}
return getCwd();
}