Skip to content

Commit

Permalink
Merge pull request #333 from bertdeblock/lazy-load-inquirer-module
Browse files Browse the repository at this point in the history
Lazy load `inquirer` module
  • Loading branch information
NullVoxPopuli authored Feb 21, 2024
2 parents 11d09ac + 906f527 commit a4d8fd9
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 a4d8fd9

Please sign in to comment.