Skip to content

Commit

Permalink
fix: Update get-workspaces to return OS specific paths (#8)
Browse files Browse the repository at this point in the history
Due to an error in how node-glob returns paths, a specific option is 
required in order to return paths appropriately for each platform.

See: isaacs/node-glob#419
Fixes: mmazzarolo/react-native-universal-monorepo#12
  • Loading branch information
kthompson authored Nov 7, 2021
1 parent 9240dc9 commit 714fd0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/get-workspaces.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = function getWorkspaces(params = {}) {
: packageJson.workspaces.packages;
return workspaceGlobs
.map((workspaceGlob) => {
return glob.sync(path.join(monorepoRoot, `${workspaceGlob}/`));
return glob.sync(path.join(monorepoRoot, `${workspaceGlob}/`), { realpath: true });
})
.flat();
};

0 comments on commit 714fd0c

Please sign in to comment.