seppevs / migrate-mongo

A database migration tool for MongoDB in Node
MIT License
927 stars 163 forks source link

Support to read the config from package.json under a key named "migrate-mongo-config". #298

Open ankur20us opened 3 years ago

ankur20us commented 3 years ago

Many frameworks like prettier, eslint etc provides the support to configure the functionality of the framework by giving the configurations in package.json itself.

A key named migrate-mongo-config would be good and pretty easy to pick, provided, when we have certain frameworks that gives reading of the configurations from anywhere, like cosmicconfig npm module.

After this we have one less config file in the root of the project, which is the main concern since root of the project becomes som messy with so many config files, and easy to maintain, as well like this:

package.json

{

   "migrate-mongo-config": {

   }
}