import { Bundler } from './chunk-ISGGMBYN.js';
import { extractMastraOption } from './chunk-FXJXKXAV.js';
import { DepsService, FileService } from './chunk-I7JM5EHU.js';
export { Deps, FileService, createChildProcessLogger, createPinoStream } from './chunk-I7JM5EHU.js';

// src/deploy/base.ts
var Deployer = class extends Bundler {
  deps = new DepsService();
  constructor(args) {
    super(args.name, "DEPLOYER");
    this.deps.__setLogger(this.logger);
  }
  getEnvFiles() {
    const possibleFiles = [".env.production", ".env.local", ".env"];
    try {
      const fileService = new FileService();
      const envFile = fileService.getFirstExistingFile(possibleFiles);
      return Promise.resolve([envFile]);
    } catch {
    }
    return Promise.resolve([]);
  }
};

// src/build/deployer.ts
async function getDeployer(entryFile, outputDir, logger) {
  const result = await extractMastraOption("deployer", entryFile, outputDir, logger);
  if (!result) {
    return null;
  }
  return result.getConfig();
}

export { Deployer, getDeployer };
//# sourceMappingURL=index.js.map
//# sourceMappingURL=index.js.map