code: function loadConfigFile() {
  	let filePath;
  	if (flags.config) {
  		filePath = path.isAbsolute(flags.config) ? flags.config : path.resolve(process.cwd(), flags.config);
  	}
  	if (!filePath && fs.existsSync(path.resolve(process.cwd(), "moleculer.config.js"))) {
  		filePath = path.resolve(process.cwd(), "moleculer.config.js");
  	}
  	if (!filePath && fs.existsSync(path.resolve(process.cwd(), "moleculer.config.json"))) {
  		filePath = path.resolve(process.cwd(), "moleculer.config.json");
  	}
  
  	if (filePath) {
  		if (!fs.existsSync(filePath))
  			return Promise.reject(new Error(`Config file not found: ${filePath}`));
  
  		const ext = path.extname(filePath);
  		switch (ext) {
  			case ".json":
  			case ".js":
  			case ".ts": {
  				configFile = require(filePath);
  				break;
  			}
  			default: return Promise.reject(new Error(`Not supported file extension: ${ext}`));
  		}
  	}
  }
docs: Load configuration file
  
  Try to load a configuration file in order to:
  
  - load file which is defined in CLI option with --config
  - try to load the `moleculer.config.js` file if exist in the cwd
  - try to load the `moleculer.config.json` file if exist in the cwd