fix(ci): stabilize windows paths

This commit is contained in:
Peter Steinberger committed 2026-01-08 03:03:03 +00:00
1 parent 7bddaa41ea
commit 6e4174b5dc
11 files changed
+126 -41

No files matched your search

+2 -1
View File
@@ -36,7 +36,8 @@ function resolveUserPath(input: string): string {
const trimmed = input.trim();
if (!trimmed) return trimmed;
if (trimmed.startsWith("~")) {
return path.resolve(trimmed.replace("~", os.homedir()));
const expanded = trimmed.replace(/^~(?=$|[\\/])/, os.homedir());
return path.resolve(expanded);
}
return path.resolve(trimmed);
}