UNPKG

dts-bundle-generator

Version:
14 lines (13 loc) 477 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getAbsolutePath = void 0; const path = require("path"); const process = require("process"); const fix_path_1 = require("./fix-path"); function getAbsolutePath(fileName, cwd) { if (!path.isAbsolute(fileName)) { fileName = path.join(cwd !== undefined ? cwd : process.cwd(), fileName); } return (0, fix_path_1.fixPath)(fileName); } exports.getAbsolutePath = getAbsolutePath;