We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
null
1 parent 124aca1 commit df993c7Copy full SHA for df993c7
lib/verify-config.js
@@ -1,4 +1,4 @@
1
-const {isString, isUndefined, isBoolean} = require('lodash');
+const {isString, isNil, isBoolean} = require('lodash');
2
const getError = require('./get-error');
3
4
const isNonEmptyString = value => isString(value) && value.trim();
@@ -12,7 +12,7 @@ const VALIDATORS = {
12
module.exports = ({npmPublish, tarballDir, pkgRoot}) => {
13
const errors = Object.entries({npmPublish, tarballDir, pkgRoot}).reduce(
14
(errors, [option, value]) =>
15
- !isUndefined(value) && value !== false && !VALIDATORS[option](value)
+ !isNil(value) && !VALIDATORS[option](value)
16
? [...errors, getError(`EINVALID${option.toUpperCase()}`, {[option]: value})]
17
: errors,
18
[]
0 commit comments