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

Commit

Permalink
Fix path in dev mode (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrelouisd4j authored and johanbrook committed Jun 29, 2016
1 parent cb01259 commit 186defc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
};

Expand Down

0 comments on commit 186defc

Please sign in to comment.