From 0ac159a66fc15590806583975d0b8be690c7db4b Mon Sep 17 00:00:00 2001 From: Wu Shuwen <108231307+dajiaohuang@users.noreply.github.com> Date: Fri, 28 Aug 2026 22:32:50 +0800 Subject: [PATCH] fix(ts-parser): normalize monorepo package paths --- ts-parser/src/utils/monorepo.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ts-parser/src/utils/monorepo.ts b/ts-parser/src/utils/monorepo.ts index 2f4e1749..127b9129 100644 --- a/ts-parser/src/utils/monorepo.ts +++ b/ts-parser/src/utils/monorepo.ts @@ -149,7 +149,7 @@ export class MonorepoUtils { if (fs.existsSync(packageJsonPath)) { try { const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8')); - const relativePath = path.relative(rootPath, currentDir); + const relativePath = path.relative(rootPath, currentDir).replace(/\\/g, '/'); packages.push({ path: relativePath, @@ -184,4 +184,4 @@ export class MonorepoUtils { console.warn(`Error discovering packages in ${currentDir}:`, error); } } -} \ No newline at end of file +}