UNPKG

mastra

Version:
12 lines 698 B
/** * Guard against `mastra deploy staging` silently deploying to production. * * The deploy signature is `deploy [dir]`, but the rest of the surface teaches * positional environments (`env restart staging`, `env db create staging`), * so users type `mastra deploy staging` expecting to target that environment. * The positional is consumed as a directory, falls back to cwd semantics, and * the deploy targets production. Fail fast when the directory doesn't exist * and point at `--env` when the argument looks like an environment name. */ export declare function assertDeployDir(dirArg: string | undefined, resolvedDir: string): Promise<void>; //# sourceMappingURL=validate-dir.d.ts.map