dts-bundle-generator
Version:
DTS Bundle Generator
14 lines (13 loc) • 477 B
JavaScript
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;
;