Skip to content

Commit

Permalink
use path.posix
Browse files Browse the repository at this point in the history
fast-glob isn't handling windows paths
  • Loading branch information
kellyselden committed Nov 18, 2024
1 parent 4615eb2 commit 46f1916
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/rules/ensure-workspaces.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ module.exports = {
continue;
}

let glob = path.join(node.value, 'package.json');
// fast-glob isn't handling windows paths
let _path = path.posix;

let glob = _path.join(node.value, 'package.json');

let entries = fg.sync(glob, {
cwd: path.dirname(filename)
Expand Down

0 comments on commit 46f1916

Please sign in to comment.