Skip to content

Instantly share code, notes, and snippets.

@janl janl/gist:9230982
Created Feb 26, 2014

Embed
What would you like to do?
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
You can’t perform that action at this time.