Skip to content

Commit 5c87570

Browse files
committed
fix
1 parent bf02a5a commit 5c87570

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/bin/list-workspaces/list-workspaces.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ export async function listWorkspaces() {
1616
const packageDirs = await getFiles(workspace.slice(0, -2), false);
1717
for (const packageDir of packageDirs) {
1818
packages.add(
19-
p.resolve(p.join(packageDir, 'package.json'))
19+
path.resolve(path.join(packageDir, 'package.json'))
2020
);
2121
}
2222
} else {
2323
packages.add(
24-
p.resolve(p.join(workspace, 'package.json'))
24+
path.resolve(path.join(workspace, 'package.json'))
2525
);
2626
}
2727
}
@@ -41,7 +41,7 @@ export async function listWorkspaces() {
4141

4242
for (const packageJSONPath of Array.from(packages)) {
4343
const packageJSON = JSON.parse(await fsp.readFile(packageJSONPath));
44-
const packagePath = p.relative(process.cwd(), p.dirname(packageJSONPath));
44+
const packagePath = p.relative(process.cwd(), path.dirname(packageJSONPath));
4545

4646
console.error(packagePath);
4747

0 commit comments

Comments
 (0)