@webpack-cli/configtest
Advanced tools
Comparing version
@@ -34,9 +34,3 @@ "use strict"; | ||
try { | ||
// @ts-expect-error cli.webpack.validate returns void | ||
const error = cli.webpack.validate(config.options); | ||
// TODO remove this after drop webpack@4 | ||
if (error && error.length > 0) { | ||
// @ts-expect-error schema argument is missing | ||
throw new cli.webpack.WebpackOptionsValidationError(error); | ||
} | ||
cli.webpack.validate(config.options); | ||
} | ||
@@ -43,0 +37,0 @@ catch (error) { |
{ | ||
"name": "@webpack-cli/configtest", | ||
"version": "1.2.0", | ||
"version": "2.0.0", | ||
"description": "Validate a webpack configuration.", | ||
@@ -8,2 +8,5 @@ "main": "lib/index.js", | ||
"license": "MIT", | ||
"engines": { | ||
"node": ">=14.15.0" | ||
}, | ||
"publishConfig": { | ||
@@ -21,6 +24,6 @@ "access": "public" | ||
"peerDependencies": { | ||
"webpack": "4.x.x || 5.x.x", | ||
"webpack-cli": "4.x.x" | ||
"webpack": "5.x.x", | ||
"webpack-cli": "5.x.x" | ||
}, | ||
"gitHead": "20882d463450d010bb76e0824fe555e9785e9561" | ||
"gitHead": "1d6ada1a84c68a00e56c536d2f004f60939bd946" | ||
} |
@@ -5,2 +5,6 @@ # webpack-cli configtest | ||
> **Note** | ||
> | ||
> This package is used by webpack-cli under-the-hood and is not intended for installation | ||
## Description | ||
@@ -7,0 +11,0 @@ |
32
14.29%4303
-4.78%54
-10%