14 lines
619 B
JavaScript
14 lines
619 B
JavaScript
"use strict";
|
|
/**
|
|
* Environment loader for CLI scripts.
|
|
* Loads dotenv from ENV_FILE (default .env) relative to the current working directory.
|
|
*/
|
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const path_1 = __importDefault(require("path"));
|
|
const dotenv_1 = __importDefault(require("dotenv"));
|
|
const envFile = process.env.ENV_FILE || '.env';
|
|
dotenv_1.default.config({ path: path_1.default.resolve(process.cwd(), envFile) });
|
|
//# sourceMappingURL=loadEnv.js.map
|