Deploy version 1.0.2
This commit is contained in:
12
dist/index.js
vendored
12
dist/index.js
vendored
@@ -26229,11 +26229,17 @@ function formatDuration(ms) {
|
||||
}
|
||||
function expandPath(p) {
|
||||
if (p === "~") {
|
||||
return os.homedir();
|
||||
}
|
||||
if (p.startsWith("~/") || p.startsWith("~\\")) {
|
||||
p = os.homedir();
|
||||
} else if (p.startsWith("~/") || p.startsWith("~\\")) {
|
||||
p = import_path.default.join(os.homedir(), p.slice(2));
|
||||
}
|
||||
p = p.replace(
|
||||
/\$([A-Z_][A-Z0-9_]+)|\$\{([A-Z_][A-Z0-9_]+)\}/gi,
|
||||
(_, var1, var2) => {
|
||||
const val = process.env[var1 || var2];
|
||||
return val !== void 0 ? val : "";
|
||||
}
|
||||
);
|
||||
return import_path.default.resolve(p);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user