Skip to content

Commit

Permalink
RawList -> List
Browse files Browse the repository at this point in the history
  • Loading branch information
evenstensberg committed Dec 13, 2017
1 parent 82c64db commit 541ba62
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
7 changes: 3 additions & 4 deletions dist/utils/WebpackOptionsValidationError.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,9 @@ class WebpackOptionsValidationError extends Error {
static formatValidationError(err) {
const dataPath = `configuration${err.dataPath}`;
if (err.keyword === "additionalProperties") {
const baseMessage = `${dataPath} has an unknown property '${err.params
.additionalProperty}'. These properties are valid:\n${getSchemaPartText(
err.parentSchema
)}`;
const baseMessage = `${dataPath} has an unknown property '${
err.params.additionalProperty
}'. These properties are valid:\n${getSchemaPartText(err.parentSchema)}`;
if (!err.dataPath) {
switch (err.params.additionalProperty) {
case "debug":
Expand Down
4 changes: 2 additions & 2 deletions lib/generators/add-generator.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const Generator = require("yeoman-generator");
const glob = require("glob-all");
const PROP_TYPES = require("../utils/prop-types");
const RawList = require("webpack-addons").RawList;
const List = require("webpack-addons").List;
const Input = require("webpack-addons").Input;

const getPackageManager = require("../utils/package-manager").getPackageManager;
Expand All @@ -28,7 +28,7 @@ module.exports = class AddGenerator extends Generator {
let done = this.async();
let action;
this.prompt([
RawList(
List(
"actionType",
"What property do you want to add to?",
Array.from(PROP_TYPES.keys())
Expand Down
4 changes: 2 additions & 2 deletions lib/generators/init-generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const createCommonsChunkPlugin = require("webpack-addons")

const Input = require("webpack-addons").Input;
const Confirm = require("webpack-addons").Confirm;
const RawList = require("webpack-addons").RawList;
const List = require("webpack-addons").List;

const getPackageManager = require("../utils/package-manager").getPackageManager;

Expand Down Expand Up @@ -120,7 +120,7 @@ module.exports = class WebpackGenerator extends Generator {
})
.then(() => {
this.prompt([
RawList(
List(
"stylingType",
"Will you use one of the below CSS solutions?",
["SASS", "LESS", "CSS", "PostCSS", "No"]
Expand Down

0 comments on commit 541ba62

Please sign in to comment.