Skip to content

Commit

Permalink
fix: convert Windows path to posix path for globby (#1197)
Browse files Browse the repository at this point in the history
  • Loading branch information
imguolao committed Sep 29, 2022
1 parent 373441e commit 568f7d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Expand Up @@ -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 : []),
Expand Down Expand Up @@ -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 : []),
Expand Down

0 comments on commit 568f7d7

Please sign in to comment.