Skip to content

Commit

Permalink
fixed path glob separator on Windows
Browse files Browse the repository at this point in the history
globby requires the use of forward slashes as path separators and on Windows OS Path.join will use backslashes in creating the path. This change replaces backslashes to forward slashes to fix globby results for Windows. More info sindresorhus/globby#179
  • Loading branch information
techmatt101 authored and JacobLey committed Jul 1, 2022
1 parent 74c95cf commit a4a3ae8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/packages-list/src/lib/lib/glob-packages.ts
Expand Up @@ -16,7 +16,7 @@ export const globPackages = async ({
const globs = Array.isArray(dirGlobs) ? dirGlobs : [dirGlobs];

const packagePaths = await globby(
globs.map(dirGlob => Path.join(dirGlob, 'package.json')),
globs.map(dirGlob => Path.join(dirGlob, 'package.json').replace(/\\/g, '/')),
{ cwd: rootPath }
);

Expand Down

0 comments on commit a4a3ae8

Please sign in to comment.