diff --git a/cli/environment-builder.js b/cli/environment-builder.js
index <HASH>..<HASH> 100644
--- a/cli/environment-builder.js
+++ b/cli/environment-builder.js
@@ -90,7 +90,7 @@ module.exports = class EnvironmentBuilder {
    */
   _lookupJHipster() {
     // Register jhipster generators.
-    this.env.lookup({ packagePaths: [path.join(__dirname, '..')] }).forEach(generator => {
+    this.env.lookup({ packagePaths: [path.join(__dirname, '..')], lookups: ['generators'] }).forEach(generator => {
       // Verify jhipster generators namespace.
       assert(
         generator.namespace.startsWith(`${CLI_NAME}:`),
Limit lookup to generators/*/index