@base44-preview/cli 0.0.7-pr.67.6f3d00e → 0.0.7-pr.67.ef17d01

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli/index.js CHANGED
@@ -38289,12 +38289,14 @@ const createCommand = new Command("create").description("Create a new Base44 pro
38289
38289
 
38290
38290
  //#endregion
38291
38291
  //#region src/cli/commands/site/deploy.ts
38292
- async function deployAction() {
38292
+ async function deployAction(options) {
38293
38293
  const { project } = await readProjectConfig();
38294
38294
  if (!project.site?.outputDirectory) throw new Error("No site configuration found. Please add 'site.outputDirectory' to your config.jsonc");
38295
38295
  const outputDir = resolve(project.root, project.site.outputDirectory);
38296
- const shouldDeploy = await ye({ message: `Deploy site from ${project.site.outputDirectory}?` });
38297
- if (pD(shouldDeploy) || !shouldDeploy) return { outroMessage: "Deployment cancelled" };
38296
+ if (!options.yes) {
38297
+ const shouldDeploy = await ye({ message: `Deploy site from ${project.site.outputDirectory}?` });
38298
+ if (pD(shouldDeploy) || !shouldDeploy) return { outroMessage: "Deployment cancelled" };
38299
+ }
38298
38300
  return { outroMessage: `Visit your site at: ${(await runTask("Creating archive and deploying site...", async () => {
38299
38301
  return await deploySite(outputDir);
38300
38302
  }, {
@@ -38302,8 +38304,8 @@ async function deployAction() {
38302
38304
  errorMessage: "Deployment failed"
38303
38305
  })).appUrl}` };
38304
38306
  }
38305
- const siteDeployCommand = new Command("site").description("Manage site deployments").addCommand(new Command("deploy").description("Deploy built site files to Base44 hosting").action(async () => {
38306
- await runCommand(deployAction, { requireAuth: true });
38307
+ const siteDeployCommand = new Command("site").description("Manage site deployments").addCommand(new Command("deploy").description("Deploy built site files to Base44 hosting").option("-y, --yes", "Skip confirmation prompt").action(async (options) => {
38308
+ await runCommand(() => deployAction(options), { requireAuth: true });
38307
38309
  }));
38308
38310
 
38309
38311
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base44-preview/cli",
3
- "version": "0.0.7-pr.67.6f3d00e",
3
+ "version": "0.0.7-pr.67.ef17d01",
4
4
  "description": "Base44 CLI - Unified interface for managing Base44 applications",
5
5
  "type": "module",
6
6
  "main": "./dist/cli/index.js",