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

Commit 6aa3afa

Browse files
committed
Merge pull request #31 from lookback/fix/pwd-windows
Fix paths on Windows.
2 parents 9a3341d + d6f8ef9 commit 6aa3afa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

utils.coffee

+4-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ if process.env.BUNDLE_PATH
2222
else if process.env.APP_DIR
2323
ROOT = path.join(process.env.APP_DIR, 'programs','server', 'assets', 'app')
2424
else
25-
# In development, using PWD is fine.
26-
ROOT = path.join(process.env.PWD, 'private')
25+
26+
# In development, using pwd is fine. Remove the .meteor/foo/bar stuff though.
27+
realPath = process.cwd().replace(/(\.meteor.*)/g, '')
28+
ROOT = path.join(realPath, 'private')
2729

2830
Utils =
2931

0 commit comments

Comments
 (0)