Created
February 26, 2014 15:00
-
-
Save janl/9230982 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/core/environment.js b/lib/core/environment.js | |
index 28eaead..109b1f0 100644 | |
--- a/lib/core/environment.js | |
+++ b/lib/core/environment.js | |
@@ -23,7 +23,7 @@ exports.getConfig = function (platform, env, project_dir, argv) { | |
project_dir = '/' + path.relative('/', project_dir); | |
// location of project's package.json | |
- var pkgfile = require(project_dir + '/package.json'); | |
+ var pkgfile = require(path.resolve(project_dir, '/package.json')); | |
// default platform-agnostic config | |
var cfg = { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment