{"version":3,"file":"index.cjs","names":["Bundler","DepsService","FileService","extractMastraOption"],"sources":["../src/deploy/base.ts","../src/build/deployer.ts"],"sourcesContent":["import type { IDeployer } from '@mastra/core/deployer';\n\nimport { Bundler } from '../bundler';\nimport { DepsService } from '../services/deps.js';\nimport { FileService } from '../services/fs.js';\n\nexport abstract class Deployer extends Bundler implements IDeployer {\n  deps: DepsService = new DepsService();\n\n  constructor(args: { name: string }) {\n    super(args.name, 'DEPLOYER');\n\n    this.deps.__setLogger(this.logger);\n  }\n\n  getEnvFiles(): Promise<string[]> {\n    return Promise.resolve(new FileService().getExistingFiles(['.env', '.env.local', '.env.production']));\n  }\n\n  abstract deploy(outputDirectory: string): Promise<void>;\n}\n","import type { IMastraLogger } from '@mastra/core/logger';\nimport type { Config } from '@mastra/core/mastra';\nimport { extractMastraOption, extractMastraOptionBundler } from './shared/extract-mastra-option';\n\nexport function getDeployerBundler(\n  entryFile: string,\n  result: {\n    hasCustomConfig: false;\n  },\n) {\n  return extractMastraOptionBundler('deployer', entryFile, result);\n}\n\nexport async function getDeployer(\n  entryFile: string,\n  outputDir: string,\n  logger?: IMastraLogger,\n): Promise<Config['deployer'] | null> {\n  const result = await extractMastraOption('deployer', entryFile, outputDir, logger);\n  if (!result) {\n    return null;\n  }\n\n  return result.getConfig();\n}\n"],"mappings":";;;;;;AAMA,IAAsB,WAAtB,cAAuCA,sBAAAA,QAA6B;CAClE,OAAoB,IAAIC,iBAAAA,YAAY;CAEpC,YAAY,MAAwB;EAClC,MAAM,KAAK,MAAM,UAAU;EAE3B,KAAK,KAAK,YAAY,KAAK,MAAM;CACnC;CAEA,cAAiC;EAC/B,OAAO,QAAQ,QAAQ,IAAIC,iBAAAA,YAAY,CAAC,CAAC,iBAAiB;GAAC;GAAQ;GAAc;EAAiB,CAAC,CAAC;CACtG;AAGF;;;ACPA,eAAsB,YACpB,WACA,WACA,QACoC;CACpC,MAAM,SAAS,MAAMC,uBAAAA,oBAAoB,YAAY,WAAW,WAAW,MAAM;CACjF,IAAI,CAAC,QACH,OAAO;CAGT,OAAO,OAAO,UAAU;AAC1B"}