Skip to content

Commit

Permalink
misc(packages): refactor yeoman-generator imports
Browse files Browse the repository at this point in the history
  • Loading branch information
misterdev committed May 2, 2019
1 parent 38f56a9 commit 65824e6
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/generators/add-generator.ts
@@ -1,4 +1,4 @@
import Generator = require("yeoman-generator");
import * as Generator from "yeoman-generator";

import * as glob from "glob-all";
import * as autoComplete from "inquirer-autocomplete-prompt";
Expand Down
2 changes: 1 addition & 1 deletion packages/generators/addon-generator.ts
@@ -1,6 +1,6 @@
import * as mkdirp from "mkdirp";
import * as path from "path";
import Generator from "yeoman-generator";
import * as Generator from "yeoman-generator";

import * as copyUtils from "@webpack-cli/utils/copy-utils";

Expand Down
4 changes: 2 additions & 2 deletions packages/generators/init-generator.ts
@@ -1,7 +1,7 @@
import chalk from "chalk";
import * as logSymbols from "log-symbols";
import Generator = require("yeoman-generator");
import Inquirer = require("inquirer");
import * as Generator from "yeoman-generator";
import * as Inquirer from "inquirer";

import { getPackageManager } from "@webpack-cli/utils/package-manager";
import { Confirm, Input, List } from "@webpack-cli/webpack-scaffold";
Expand Down
2 changes: 1 addition & 1 deletion packages/generators/remove-generator.ts
@@ -1,6 +1,6 @@
import * as fs from "fs";
import * as path from "path";
import Generator = require("yeoman-generator");
import * as Generator from "yeoman-generator";

import PROP_TYPES from "@webpack-cli/utils/prop-types";
import { List } from "@webpack-cli/webpack-scaffold";
Expand Down
2 changes: 1 addition & 1 deletion packages/generators/update-generator.ts
@@ -1,3 +1,3 @@
import Generator = require("yeoman-generator");
import * as Generator from "yeoman-generator";

export default class UpdateGenerator extends Generator {}
2 changes: 1 addition & 1 deletion packages/generators/utils/entry.ts
@@ -1,4 +1,4 @@
import Generator from "yeoman-generator";
import * as Generator from "yeoman-generator";
import { InputValidate } from "@webpack-cli/webpack-scaffold";

import validate from "./validate";
Expand Down
3 changes: 2 additions & 1 deletion packages/utils/modify-config-helper.ts
Expand Up @@ -3,7 +3,8 @@ import * as fs from "fs";
import * as logSymbols from "log-symbols";
import * as path from "path";
import * as yeoman from "yeoman-environment";
import Generator from "yeoman-generator";
import * as Generator from "yeoman-generator";


import runTransform from "./scaffold";

Expand Down
2 changes: 1 addition & 1 deletion packages/webpack-scaffold/index.ts
@@ -1,5 +1,5 @@
import * as jscodeshift from "jscodeshift";
import Generator from "yeoman-generator";
import * as Generator from "yeoman-generator";

export function createArrowFunction(value: string): string {
return `() => '${value}'`;
Expand Down

0 comments on commit 65824e6

Please sign in to comment.