Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabh3112 committed May 28, 2019
1 parent 915c4ab commit 5778bdf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
11 changes: 9 additions & 2 deletions packages/generators/add-generator.ts
Expand Up @@ -22,8 +22,9 @@ import { Input, List } from "@webpack-cli/webpack-scaffold";

import { SchemaProperties, WebpackOptions } from "./types";
import entryQuestions from "./utils/entry";
import { AutoComplete } from "@webpack-cli/webpack-scaffold";
import { resolve } from "path";
import * as AutoComplete from "inquirer-autocomplete-prompt";
import path, { resolve } from "path";
import glob from 'glob'

/**
*
Expand All @@ -41,6 +42,12 @@ export default class AddGenerator extends Generator {
configName?: string;
topScope?: string[];
item?: string;
merge?: {
configName?: string;
topScope?: string[];
item?: string;
webpackOptions?: WebpackOptions;
};
webpackOptions?: WebpackOptions;
};
};
Expand Down
6 changes: 3 additions & 3 deletions packages/generators/utils/add/questions/index.ts
@@ -1,22 +1,22 @@
import {
AutoComplete,
Confirm,
IInquirerInput,
InquirerInput,
Input,
InputValidate,
List,
} from "@webpack-cli/webpack-scaffold";
import { existsSync } from "fs";
import { resolve } from "path";
import {
searchProps,
} from "../index";
import { Question } from "inquirer";

/**
* Returns Inquirer question for given action
* @param action string
*/
export const manualOrListInput: (action: string) => IInquirerInput = (action: string) => {
export const manualOrListInput: (action: string) => Question = (action: string) => {
const actionQuestion = `What do you want to add to ${action}?`;
return Input("actionAnswer", actionQuestion);
};
Expand Down

0 comments on commit 5778bdf

Please sign in to comment.