diff --git a/lib/utils.js b/lib/utils.js index 1367893..2495b06 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -25,7 +25,8 @@ const developmentPrivateDir = () => { if (!isDevEnv()) return; // In development, using `pwd` is fine. Remove the .meteor/foo/bar stuff though. - const meteorRoot = process.cwd().replace(/(\.meteor.*)/g, ''); + const reg = new RegExp(path.sep+'\.meteor.*','g'); + const meteorRoot = process.cwd().replace(reg, ''); return path.join(meteorRoot, 'private'); };