1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | var path = require("path");
|
4 | var process = require("process");
|
5 | var fix_path_1 = require("./fix-path");
|
6 | function 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 | }
|
12 | exports.getAbsolutePath = getAbsolutePath;
|