Skip to content
This repository was archived by the owner on Nov 9, 2026. It is now read-only.

Commit 5e1ebf6

Browse files
author
Wu Shuwen
authored
fix(ts-parser): normalize monorepo package paths (#203)
1 parent 535eb66 commit 5e1ebf6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎ts-parser/src/utils/monorepo.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export class MonorepoUtils {
149149
if (fs.existsSync(packageJsonPath)) {
150150
try {
151151
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8'));
152-
const relativePath = path.relative(rootPath, currentDir);
152+
const relativePath = path.relative(rootPath, currentDir).replace(/\\/g, '/');
153153

154154
packages.push({
155155
path: relativePath,
@@ -184,4 +184,4 @@ export class MonorepoUtils {
184184
console.warn(`Error discovering packages in ${currentDir}:`, error);
185185
}
186186
}
187-
}
187+
}

0 commit comments

Comments
 (0)