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 +}