bin/moleculer-runner.js
function loadEnvFile() {
	if (flags.env || flags.envfile) {
		try {
			const dotenv = require("dotenv");

			if (flags.envfile)
				dotenv.config({ path: flags.envfile });
			else
				dotenv.config();
		} catch(err) {
			throw new Error("The 'dotenv' package is missing! Please install it with 'npm install dotenv --save' command.");
		}
	}
}
function loadEnvFile() {
	if (flags.env || flags.envfile) {
		try {
			const dotenv = require("dotenv");

			if (flags.envfile)
				dotenv.config({ path: flags.envfile });
			else
				dotenv.config();
		} catch(err) {
			throw new Error("The 'dotenv' package is missing! Please install it with 'npm install dotenv --save' command.");
		}
	}
}
function loadEnvFile ( ) { if ( flags . env || flags . envfile ) { try { const dotenv = require ( "dotenv" ) ; if ( flags . envfile ) dotenv . config ( { path : flags . envfile } ) ; else dotenv . config ( ) ; } catch ( err ) { throw new Error ( "The 'dotenv' package is missing! Please install it with 'npm install dotenv --save' command." ) ; } } }
Load environment variables from '.env' file
Load environment variables from . env file