We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c25109 commit 648b21bCopy full SHA for 648b21b
1 file changed
lib/verify-config.js
@@ -9,8 +9,8 @@ const VALIDATORS = {
9
pkgRoot: isNonEmptyString,
10
};
11
12
-module.exports = options => {
13
- const errors = Object.entries(options).reduce(
+module.exports = ({npmPublish, tarballDir, pkgRoot}) => {
+ const errors = Object.entries({npmPublish, tarballDir, pkgRoot}).reduce(
14
(errors, [option, value]) =>
15
!isUndefined(value) && value !== false && !VALIDATORS[option](value)
16
? [...errors, getError(`EINVALID${option.toUpperCase()}`, {[option]: value})]
0 commit comments