From b4a746ce6205c41b531a2cf3b20ab1f0cf5b4273 Mon Sep 17 00:00:00 2001 From: nassimerrahoui Date: Fri, 3 Jul 2020 16:34:49 +0200 Subject: [PATCH] Fix remove getAllJhipsterConfig Co-authored-by: Adil Abed --- generators/page/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/generators/page/index.js b/generators/page/index.js index cc6c06f3..19ce06b8 100644 --- a/generators/page/index.js +++ b/generators/page/index.js @@ -17,7 +17,6 @@ * limitations under the License. */ const EntityClientGenerator = require('generator-jhipster/generators/entity-client'); -const jhipsterUtils = require('generator-jhipster/generators/utils'); const chalk = require('chalk'); const prompts = require('./prompts'); const writeFiles = require('./files').writeFiles; @@ -26,7 +25,7 @@ module.exports = class extends EntityClientGenerator { constructor(args, opts) { super(args, Object.assign({ fromBlueprint: true }, opts)); // fromBlueprint variable is important // Get missing configuration - const configuration = jhipsterUtils.getAllJhipsterConfig(null, true); + const configuration = this.config; this.skipClient = configuration.skipClient; this.clientPackageManager = configuration.clientPackageManager; this.enableTranslation = configuration.enableTranslation;