Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lazy load inquirer module #333

Merged
merged 1 commit into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading