Skip to content

Commit

Permalink
chore: use import instead of require
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabh3112 committed Jun 5, 2019
1 parent 8e3f4ae commit 5ee4169
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/generators/add-generator.ts
Expand Up @@ -3,7 +3,7 @@ import npmExists from "@webpack-cli/utils/npm-exists";
import { getPackageManager } from "@webpack-cli/utils/package-manager";
import { Input, List } from "@webpack-cli/webpack-scaffold";
// eslint-disable-next-line
export const webpackDevServerSchema = require("webpack-dev-server/lib/options.json");
import webpackDevServerSchema from "webpack-dev-server/lib/options.json";
import * as AutoComplete from "inquirer-autocomplete-prompt";
import path, { resolve } from "path";
import glob from "glob-all";
Expand All @@ -20,7 +20,7 @@ import { SchemaProperties, WebpackOptions } from "./types";
import entryQuestions from "./utils/entry";
import { generatePluginName } from "./utils/plugins";
// eslint-disable-next-line
export const webpackSchema = require("../optionsSchema.json");
import webpackSchema from "../optionsSchema.json";

/**
*
Expand Down

0 comments on commit 5ee4169

Please sign in to comment.