From 5c87570610565ec0ab378109d29b797d8c76945b Mon Sep 17 00:00:00 2001 From: Romain Menke Date: Thu, 6 Apr 2023 21:32:28 +0200 Subject: [PATCH] fix --- .github/bin/list-workspaces/list-workspaces.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/bin/list-workspaces/list-workspaces.mjs b/.github/bin/list-workspaces/list-workspaces.mjs index e239ad531..20aac8dd4 100644 --- a/.github/bin/list-workspaces/list-workspaces.mjs +++ b/.github/bin/list-workspaces/list-workspaces.mjs @@ -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')) ); } } @@ -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);