UNPKG

@nx-dotnet/utils

Version:

This library was generated with [Nx](https://nx.dev).

17 lines 520 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getAbsolutePath = getAbsolutePath; const path_1 = require("path"); /** * Returns the absolute path of a file or directory. * @param path The path to resolve. * @param maybeRoot The root to resolve from. * @returns The absolute path. */ function getAbsolutePath(path, maybeRoot) { if ((0, path_1.isAbsolute)(path)) { return path; } return (0, path_1.resolve)(maybeRoot, path); } //# sourceMappingURL=path.js.map