Skip to content
This repository was archived by the owner on Jan 22, 2021. It is now read-only.

Commit 186defc

Browse files
pierrelouisd4jjohanbrook
authored andcommitted
Fix path in dev mode (#67)
1 parent cb01259 commit 186defc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/utils.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ const developmentPrivateDir = () => {
2525
if (!isDevEnv())
2626
return;
2727
// In development, using `pwd` is fine. Remove the .meteor/foo/bar stuff though.
28-
const meteorRoot = process.cwd().replace(/(\.meteor.*)/g, '');
28+
const reg = new RegExp(path.sep+'\.meteor.*','g');
29+
const meteorRoot = process.cwd().replace(reg, '');
2930
return path.join(meteorRoot, 'private');
3031
};
3132

0 commit comments

Comments
 (0)