UNPKG

@mastra/core

Version:
1 lines 1.05 kB
{"version":3,"file":"index.cjs","names":["MastraBundler"],"sources":["../../src/deployer/index.ts"],"sourcesContent":["import { MastraBundler } from '../bundler';\nimport type { IBundler } from '../bundler';\n\nexport interface IDeployer extends IBundler {\n deploy(outputDirectory: string): Promise<void>;\n /**\n * When true, `mastra build` runs `deploy()` right after bundling.\n * Push-style deployers (e.g. sandbox deploys) opt in; platform deployers\n * that deploy via their own tooling (git push, wrangler, ...) leave it unset.\n */\n readonly deployOnBuild?: boolean;\n}\n\nexport abstract class MastraDeployer extends MastraBundler implements IDeployer {\n constructor({ name }: { name: string }) {\n super({ component: 'DEPLOYER', name });\n }\n\n abstract deploy(outputDirectory: string): Promise<void>;\n\n /** See {@link IDeployer.deployOnBuild}. */\n readonly deployOnBuild?: boolean;\n}\n"],"mappings":";;;AAaA,IAAsB,iBAAtB,cAA6CA,sBAAAA,cAAmC;CAC9E,YAAY,EAAE,QAA0B;EACtC,MAAM;GAAE,WAAW;GAAY;EAAK,CAAC;CACvC;;CAKA;AACF"}