Skip to content

Commit

Permalink
Changed weird regex to path.split.join
Browse files Browse the repository at this point in the history
  • Loading branch information
witemple-msft committed Jan 14, 2022
1 parent 9c20ebb commit 9132065
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion common/tools/dev-tool/src/commands/run/bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ export default leafCommand(commandInfo, async (options) => {
process.cwd(),
path.join(await resolveRoot(), "common", "temp", "node_modules", ".pnpm")
)
.replace(new RegExp(path.sep, "g"), "/");
.split(path.sep)
.join("/");

log.debug("Computed PNPM store relative path:", pnpmStore);

Expand Down

0 comments on commit 9132065

Please sign in to comment.