Skip to content

Commit

Permalink
chore: use require on json
Browse files Browse the repository at this point in the history
  • Loading branch information
evenstensberg committed Nov 4, 2018
1 parent 1e7ad51 commit 9f47851
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,6 @@ import Generator = require("yeoman-generator");
import * as glob from "glob-all";
import * as autoComplete from "inquirer-autocomplete-prompt";
import * as path from "path";
import webpackDevServerSchema from "webpack-dev-server/lib/options.json";

import npmExists from "@webpack-cli/utils/npm-exists";
import { getPackageManager } from "@webpack-cli/utils/package-manager";
Expand All @@ -19,8 +18,9 @@ import {

import { ISchemaProperties, IWebpackOptions } from "./types";
import entryQuestions from "./utils/entry";
import webpackSchema from "./utils/optionsSchema.json";

const webpackDevServerSchema = require("webpack-dev-server/lib/options.json");
const webpackSchema = require("./utils/optionsSchema.json");
const PROPS: string[] = Array.from(PROP_TYPES.keys());

/**
Expand Down

0 comments on commit 9f47851

Please sign in to comment.