Skip to content

Commit

Permalink
Lazy load inquirer module
Browse files Browse the repository at this point in the history
  • Loading branch information
bertdeblock committed Aug 19, 2023
1 parent 74bcb3f commit 906f527
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions features/application-template-wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

const chalk = require('chalk');
const fs = require('fs');
const inquirer = require('inquirer');
const p = require('util').promisify;
const path = require('path');
const strip = require('../utils').strip;
Expand Down Expand Up @@ -74,7 +73,7 @@ module.exports = {
To be very conservative, I could add the \`<div class="ember-view">\` wrapper to your application.hbs. (You can always remove it later.)
`);

let response = await inquirer.prompt({
let response = await require('inquirer').prompt({
type: 'confirm',
name: 'shouldRewrite',
message: 'Would you like me to do that for you?',
Expand Down
3 changes: 1 addition & 2 deletions features/template-only-glimmer-components.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

const chalk = require('chalk');
const fs = require('fs');
const inquirer = require('inquirer');
const glob = require('glob');
const mkdirp = require('mkdirp');
const p = require('util').promisify;
Expand Down Expand Up @@ -181,7 +180,7 @@ module.exports = {
`);
}

let response = await inquirer.prompt({
let response = await require('inquirer').prompt({
type: 'confirm',
name: 'shouldGenerate',
message: 'Would you like me to generate these component files for you?',
Expand Down

0 comments on commit 906f527

Please sign in to comment.