From 392db6738bf4dec1bdb98446f4f80817347297aa Mon Sep 17 00:00:00 2001 From: imguolao Date: Thu, 29 Sep 2022 15:31:13 +0800 Subject: [PATCH] fix: convert Windows path to posix path for globby --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index a7206be6..6703239e 100755 --- a/src/index.ts +++ b/src/index.ts @@ -226,7 +226,7 @@ export async function run( } const workspacePackageGlob = ([] as string[]) .concat(workspaces || []) - .map(workspace => path.join(workspace, defaultPackageFilename)) + .map(workspace => path.join(workspace, defaultPackageFilename).replace(/\\/g, '/')) pkgs = [ // include root project package file when --root is used ...(options.root ? pkgs : []), @@ -260,7 +260,7 @@ export async function run( } const workspacePackageGlob = ([] as string[]) .concat(workspaces || []) - .map(workspace => path.join(workspace, defaultPackageFilename)) + .map(workspace => path.join(workspace, defaultPackageFilename).replace(/\\/g, '/')) pkgs = [ // include root project package file when --root is used ...(options.root ? pkgs : []),