File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,8 +22,9 @@ import { Input, List } from "@webpack-cli/webpack-scaffold";
2222
2323import { SchemaProperties , WebpackOptions } from "./types" ;
2424import entryQuestions from "./utils/entry" ;
25- import { AutoComplete } from "@webpack-cli/webpack-scaffold" ;
26- import { resolve } from "path" ;
25+ import * as AutoComplete from "inquirer-autocomplete-prompt" ;
26+ import path , { resolve } from "path" ;
27+ import glob from 'glob'
2728
2829/**
2930 *
@@ -41,6 +42,12 @@ export default class AddGenerator extends Generator {
4142 configName ?: string ;
4243 topScope ?: string [ ] ;
4344 item ?: string ;
45+ merge ?: {
46+ configName ?: string ;
47+ topScope ?: string [ ] ;
48+ item ?: string ;
49+ webpackOptions ?: WebpackOptions ;
50+ } ;
4451 webpackOptions ?: WebpackOptions ;
4552 } ;
4653 } ;
Original file line number Diff line number Diff line change 11import {
22 AutoComplete ,
33 Confirm ,
4- IInquirerInput ,
4+ InquirerInput ,
55 Input ,
66 InputValidate ,
7- List ,
87} from "@webpack-cli/webpack-scaffold" ;
98import { existsSync } from "fs" ;
109import { resolve } from "path" ;
1110import {
1211 searchProps ,
1312} from "../index" ;
13+ import { Question } from "inquirer" ;
1414
1515/**
1616 * Returns Inquirer question for given action
1717 * @param action string
1818 */
19- export const manualOrListInput : ( action : string ) => IInquirerInput = ( action : string ) => {
19+ export const manualOrListInput : ( action : string ) => Question = ( action : string ) => {
2020 const actionQuestion = `What do you want to add to ${ action } ?` ;
2121 return Input ( "actionAnswer" , actionQuestion ) ;
2222} ;
You can’t perform that action at this time.
0 commit comments