Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
romainmenke committed Apr 6, 2023
1 parent bf02a5a commit 5c87570
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/bin/list-workspaces/list-workspaces.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ export async function listWorkspaces() {
const packageDirs = await getFiles(workspace.slice(0, -2), false);
for (const packageDir of packageDirs) {
packages.add(
p.resolve(p.join(packageDir, 'package.json'))
path.resolve(path.join(packageDir, 'package.json'))
);
}
} else {
packages.add(
p.resolve(p.join(workspace, 'package.json'))
path.resolve(path.join(workspace, 'package.json'))
);
}
}
Expand All @@ -41,7 +41,7 @@ export async function listWorkspaces() {

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

console.error(packagePath);

Expand Down

0 comments on commit 5c87570

Please sign in to comment.