You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🤖 fix: add cross-platform path handling for Windows compatibility (#540)
Adds comprehensive cross-platform path handling to support Windows
builds alongside Unix systems.
## Changes
- **New PlatformPaths utility class** - Single source of truth for all
path operations
- Handles Windows drive letters (C:\) and UNC paths (\\server\share)
- Correctly splits paths using both forward and backslash separators
- Platform-aware home directory expansion (~/ on Unix, %USERPROFILE% on
Windows)
- Fish-style path abbreviation that works on both platforms
- **Replaced all direct path operations** throughout the codebase:
- `path.basename()` → `PlatformPaths.basename()`
- `expandTilde()` → `PlatformPaths.expandHome()`
- `abbreviatePath()` → `PlatformPaths.abbreviate()`
- Manual path splitting → `PlatformPaths.parse()`
- **Comprehensive test coverage** - Tests verify correct behavior on
both platforms
## Testing
- All existing tests pass
- New PlatformPaths tests verify Windows and Unix path handling
- Type checking passes
_Generated with `mux`_
dev: node_modules/.installed build-main ## Start development server (Vite + tsgo watcher for 10x faster type checking)
100
114
@bun x concurrently -k \
101
115
"bun x concurrently \"$(TSGO) -w -p tsconfig.main.json\"\"bun x tsc-alias -w -p tsconfig.main.json\""\
102
116
"vite"
117
+
endif
103
118
119
+
ifeq ($(OS),Windows_NT)
120
+
dev-server: node_modules/.installed build-main ## Start server mode with hot reload (backend :3000 + frontend :5173). Use VITE_HOST=0.0.0.0 BACKEND_HOST=0.0.0.0 for remote access
dev-server: node_modules/.installed build-main ## Start server mode with hot reload (backend :3000 + frontend :5173). Use VITE_HOST=0.0.0.0 BACKEND_HOST=0.0.0.0 for remote access
0 commit comments