From 568f7d7fa5ea174542191830870be4fed979854b Mon Sep 17 00:00:00 2001 From: guolao Date: Fri, 30 Sep 2022 05:01:08 +0800 Subject: [PATCH] fix: convert Windows path to posix path for globby (#1197) --- 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 : []),