Skip to content

Commit 8219422

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 da5df06 commit 8219422

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/core/src/loader/manifest.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,8 @@ export class ManifestStore {
224224
// --- Path Utilities ---
225225

226226
#toRelative(absPath: string): string {
227-
if (path.isAbsolute(absPath)) {
228-
return path.relative(this.baseDir, absPath);
229-
}
230-
return absPath;
227+
const rel = path.isAbsolute(absPath) ? path.relative(this.baseDir, absPath) : absPath;
228+
return rel.replaceAll(path.sep, '/');
231229
}
232230

233231
#toAbsolute(relPath: string): string {

0 commit comments

Comments
 (0)