diff --git a/dist/index.js b/dist/index.js index ab05c2a..4e7c1a3 100644 --- a/dist/index.js +++ b/dist/index.js @@ -26225,10 +26225,13 @@ function formatDuration(ms) { return parts.join(" "); } function expandPath(p) { - if (p.startsWith("~")) { - return import_path.default.join(os.homedir(), p.slice(1)); + if (p === "~") { + return os.homedir(); } - return p; + if (p.startsWith("~/") || p.startsWith("~\\")) { + p = import_path.default.join(os.homedir(), p.slice(2)); + } + return import_path.default.resolve(p); } // src/cache.ts