mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
Relativize absolute find results with path.relative() instead of slicing at searchPath.length + 1. path.resolve() keeps the trailing separator for root paths (POSIX / and Windows bare drive roots like I:\), so the slice dropped the first character of the first path segment. Preserve directory markers using platform-aware separators so Windows paths do not gain "//" and valid POSIX backslashes remain unchanged. This also avoids treating sibling paths with a shared prefix as children. Relative results returned by custom glob operations now pass through unchanged instead of being resolved against process.cwd(), which produced invalid paths whenever cwd differed from the search path. Fixes #6104 |
||
|---|---|---|
| .. | ||
| bun | ||
| cli | ||
| client | ||
| core | ||
| extensions | ||
| modes | ||
| utils | ||
| cli.ts | ||
| config.ts | ||
| index.ts | ||
| main.ts | ||
| migrations.ts | ||
| package-manager-cli.ts | ||
| rpc-entry.ts | ||