Skip to content

Commit

Permalink
remove other init errors that block generators with v7.4 [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
ruddell committed Dec 10, 2021
1 parent 17bfbe6 commit 18c57d0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion generators/entities/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = class extends EntitiesGenerator {

if (!jhContext) {
console.log('No jhContext found after initializing blueprint (entities generator)');
this.error(`This is a JHipster blueprint and should be used only like ${chalk.yellow('jhipster --blueprints react-native')}`);
// this.error(`This is a JHipster blueprint and should be used only like ${chalk.yellow('jhipster --blueprints react-native')}`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion generators/entity/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = class extends EntityGenerator {

if (!jhContext) {
console.log('No jhContext found after initializing blueprint (entity generator)');
this.error(`This is a JHipster blueprint and should be used only like ${chalk.yellow('jhipster --blueprints react-native')}`);
// this.error(`This is a JHipster blueprint and should be used only like ${chalk.yellow('jhipster --blueprints react-native')}`);
}

this.patchInFile = patchInFile.bind(this);
Expand Down
3 changes: 2 additions & 1 deletion generators/heroku/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ module.exports = class extends HerokuGenerator {
const jhContext = (this.jhipsterContext = this.options.jhipsterContext);

if (!jhContext) {
this.error(`This is a JHipster blueprint and should be used only like ${chalk.yellow('jhipster --blueprints react-native')}`);
console.log('No jhContext found after initializing blueprint (heroku generator)');
// this.error(`This is a JHipster blueprint and should be used only like ${chalk.yellow('jhipster --blueprints react-native')}`);
}

this.configOptions = jhContext.configOptions || {};
Expand Down

0 comments on commit 18c57d0

Please sign in to comment.