Skip to content

Commit

Permalink
fix: we should check for lux under the dependency key in package.json…
Browse files Browse the repository at this point in the history
… not root (#643)
  • Loading branch information
zacharygolba authored Jan 17, 2017
1 parent b7c66cb commit 89dff61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/lux
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ function inLuxProject() {
}

try {
return Boolean(require(path.join(cwd, 'package.json'))['lux-framework']);
const { dependencies } = require(path.join(cwd, 'package.json'));
return Boolean(dependencies['lux-framework']);
} catch (err) {
return false;
}
Expand Down

0 comments on commit 89dff61

Please sign in to comment.