Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: merge custom options with default options deeply
Previously, the options were not merged deeply, so if anything was set under e.g. watch, all of the default options under watch also had to be specified to keep the defaults. This includes the pattern, so if you set watch.ignore or watch.chokidar, you had to set watch.pattern otherwise nothing would be watched. Unfortunately, I had to cast the result to get the correct types here because mergeDeepRight doesn't set the correct types for array properties. See DefinitelyTyped/DefinitelyTyped#64424
- Loading branch information