You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like for us to investigate the possibility of using the conf package to manage our CLI's config file. It's a widely-used package, and it provides some potentially useful features we may want in the future, such as config file version migrations (in case we need to change something about the config file in the future after a public release).
The text was updated successfully, but these errors were encountered:
@dariober I looked at a couple of the things we talked about at our pairing today regarding conf.
I couldn't reproduce the error with the custom cwd and fileExtension. Did you perhaps somehow accidentally create a directory called config.yaml?
It looks like conf doesn't allow us to add top-level properties to the schema (see https://github.com/sindresorhus/conf/issues/80), but since the schema is optional, I think we can continue with using conf without a schema and add in our own validation (we can probably keep the existing joi validation). If we subclass Conf, we can add our own validation like this:
I'd like for us to investigate the possibility of using the
conf
package to manage our CLI's config file. It's a widely-used package, and it provides some potentially useful features we may want in the future, such as config file version migrations (in case we need to change something about the config file in the future after a public release).The text was updated successfully, but these errors were encountered: