UNPKG

@mastra/core

Version:

Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.

24 lines (22 loc) 712 B
import { MastraBase } from './chunk-VQASQG5D.js'; import { readFile } from 'fs/promises'; import { parse } from 'dotenv'; var MastraBundler = class extends MastraBase { constructor({ name, component = "BUNDLER" }) { super({ component, name }); } async loadEnvVars() { const envVars = /* @__PURE__ */ new Map(); for (const file of await this.getEnvFiles()) { const content = await readFile(file, "utf-8"); const config = parse(content); Object.entries(config).forEach(([key, value]) => { envVars.set(key, value); }); } return envVars; } }; export { MastraBundler }; //# sourceMappingURL=chunk-CNMPROPI.js.map //# sourceMappingURL=chunk-CNMPROPI.js.map