allow a string to be passed as the optional option

This commit is contained in:
Sebastian McKenzie
2015-01-13 14:33:18 +11:00
parent 010dbe1cce
commit b2dc560a2d
2 changed files with 6 additions and 0 deletions

View File

@@ -11,6 +11,11 @@
_Note: Gaps between patch versions are faulty/broken releases._
## 2.11.3
* **Bug Fix**
* Allow a string to be passed as the `optional` option.
## 2.11.2
* **Bug Fix**

View File

@@ -72,6 +72,7 @@ File.normaliseOptions = function (opts) {
opts.blacklist = util.arrayify(opts.blacklist);
opts.whitelist = util.arrayify(opts.whitelist);
opts.optional = util.arrayify(opts.optional);
_.defaults(opts, {
moduleRoot: opts.sourceRoot