UNPKG

432 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var path = require("path");
4var process = require("process");
5var fix_path_1 = require("./fix-path");
6function getAbsolutePath(fileName, cwd) {
7 if (!path.isAbsolute(fileName)) {
8 fileName = path.join(cwd !== undefined ? cwd : process.cwd(), fileName);
9 }
10 return fix_path_1.fixPath(fileName);
11}
12exports.getAbsolutePath = getAbsolutePath;