diff --git a/.changeset/metal-berries-travel.md b/.changeset/metal-berries-travel.md new file mode 100644 index 00000000..46a9031b --- /dev/null +++ b/.changeset/metal-berries-travel.md @@ -0,0 +1,5 @@ +--- +"bob-the-bundler": patch +--- + +Correctly resolve glob patterns on Windows platform diff --git a/src/utils/get-workspace-package-paths.ts b/src/utils/get-workspace-package-paths.ts index f0966e17..0330042e 100644 --- a/src/utils/get-workspace-package-paths.ts +++ b/src/utils/get-workspace-package-paths.ts @@ -7,7 +7,7 @@ export async function getWorkspacePackagePaths(workspaces: string[], cwd = proce workspaces /** We are only interested in workspaces that are packages (for now.) */ .filter(workspacePattern => workspacePattern.startsWith('packages/')) - .map(workspacePattern => path.join(workspacePattern, 'package.json')), + .map(workspacePattern => path.posix.join(workspacePattern, 'package.json')), { cwd, ignore: ['**/node_modules/**', ...buildArtifactDirectories],