Skip to content

fix(windows): support local path formats and normalize subpath#77

Open
maxpetrusenko wants to merge 2 commits intonumman-ali:mainfrom
maxpetrusenko:fix/windows-path-handling-64-65-71
Open

fix(windows): support local path formats and normalize subpath#77
maxpetrusenko wants to merge 2 commits intonumman-ali:mainfrom
maxpetrusenko:fix/windows-path-handling-64-65-71

Conversation

@maxpetrusenko
Copy link

Summary

  • support Windows local-path detection in install:
    • C:/...
    • C:\...
    • ~\...
  • support Git Bash/MSYS-style /c/... mapping on Windows during path expansion
  • normalize stored git metadata subpath to POSIX separators (/) so .openskills.json is portable and stable
  • expand sync --output paths starting with ~/ or ~\ to the user home dir

Why

Closes #64, #65, and #71.

Verification

  • npm run typecheck
  • npm run build
  • npx vitest run tests/commands/install.test.ts tests/commands/sync.test.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] -o parameter does not expand tilde (~) to user home directory on Windows

1 participant