Permalink
Browse files

Merge pull request #188 from kevva/global

Add support for global generators
  • Loading branch information...
2 parents 7269d1d + d7835ed commit ba9b1d64c6fd139f18f29f9ae12c04079fe7f948 @sindresorhus sindresorhus committed Mar 21, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/env.js
View
@@ -53,6 +53,10 @@ var Environment = module.exports = function Environment(args, opts) {
this.appendPath('.');
+ // adds support for global generators. ensures support across all OS since the
+ // global node_modules dir always is four levels up from env.js
+ this.appendPath(path.join(__dirname, '../../../..'));
+
this._prefixReg = null;
this._prefixes = this._prefixes || [];
this._suffix = this._suffix || '';

0 comments on commit ba9b1d6

Please sign in to comment.