Skip to content

Commit 9e7482e

Browse files
killaguclaude
andcommitted
fix(core): normalize path separators to forward slashes on Windows
path.relative() produces backslashes on Windows but manifest JSON should always use forward slashes for cross-platform portability. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 337f06c commit 9e7482e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/loader/manifest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,9 @@ export class ManifestStore {
225225

226226
#toRelative(absPath: string): string {
227227
if (path.isAbsolute(absPath)) {
228-
return path.relative(this.baseDir, absPath);
228+
return path.relative(this.baseDir, absPath).replaceAll('\\', '/');
229229
}
230-
return absPath;
230+
return absPath.replaceAll('\\', '/');
231231
}
232232

233233
#toAbsolute(relPath: string): string {

0 commit comments

Comments
 (0)