@base44-preview/cli 0.1.18-pr.635.6429d1d → 0.1.18-pr.635.8f4bb62

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
@@ -250005,6 +250005,36 @@ function printStripeResult(r, log) {
250005
250005
  log.info(` Connectors dashboard: ${theme.colors.links(getConnectorsUrl())}`);
250006
250006
  }
250007
250007
 
250008
+ // src/cli/commands/project/install.ts
250009
+ async function installAction({
250010
+ runTask
250011
+ }) {
250012
+ const { project } = await readProjectConfig();
250013
+ const installCommand = project.site?.installCommand;
250014
+ if (!installCommand) {
250015
+ throw new ConfigNotFoundError("No site install command found.", {
250016
+ hints: [
250017
+ {
250018
+ message: `Add a 'site' block to your config.jsonc (e.g., "site": { "installCommand": "npm ci" }). Inside one, installCommand defaults to "npm install".`
250019
+ }
250020
+ ]
250021
+ });
250022
+ }
250023
+ await runTask("Installing site dependencies...", () => execa({ cwd: project.root, shell: true })`${installCommand}`, {
250024
+ successMessage: "Dependencies installed",
250025
+ errorMessage: "Install failed"
250026
+ });
250027
+ return {
250028
+ outroMessage: `Installed with ${theme.styles.bold(installCommand)}`
250029
+ };
250030
+ }
250031
+ function getInstallCommand() {
250032
+ return new Base44Command("install", {
250033
+ requireAuth: false,
250034
+ requireAppContext: false
250035
+ }).description("Install the site's dependencies with its configured command").action(installAction);
250036
+ }
250037
+
250008
250038
  // src/cli/commands/project/app-id-options.ts
250009
250039
  function readExplicitAppId(command) {
250010
250040
  const { appId } = command.optsWithGlobals();
@@ -251277,36 +251307,6 @@ function getSiteDevCommand() {
251277
251307
  return new Base44Command("dev", { requireAuth: false }).description("Run the site's dev server, with no local backend").action(siteDevAction);
251278
251308
  }
251279
251309
 
251280
- // src/cli/commands/site/install.ts
251281
- async function installAction({
251282
- runTask
251283
- }) {
251284
- const { project } = await readProjectConfig();
251285
- const installCommand = project.site?.installCommand;
251286
- if (!installCommand) {
251287
- throw new ConfigNotFoundError("No site install command found.", {
251288
- hints: [
251289
- {
251290
- message: `Add a 'site' block to your config.jsonc (e.g., "site": { "installCommand": "npm ci" }). Inside one, installCommand defaults to "npm install".`
251291
- }
251292
- ]
251293
- });
251294
- }
251295
- await runTask("Installing site dependencies...", () => execa({ cwd: project.root, shell: true })`${installCommand}`, {
251296
- successMessage: "Dependencies installed",
251297
- errorMessage: "Install failed"
251298
- });
251299
- return {
251300
- outroMessage: `Installed with ${theme.styles.bold(installCommand)}`
251301
- };
251302
- }
251303
- function getSiteInstallCommand() {
251304
- return new Base44Command("install", {
251305
- requireAuth: false,
251306
- requireAppContext: false
251307
- }).description("Install the site's dependencies with its configured command").action(installAction);
251308
- }
251309
-
251310
251310
  // src/cli/commands/site/open.ts
251311
251311
  async function openAction({
251312
251312
  isNonInteractive
@@ -251323,7 +251323,7 @@ function getSiteOpenCommand() {
251323
251323
 
251324
251324
  // src/cli/commands/site/index.ts
251325
251325
  function getSiteCommand() {
251326
- return new Command2("site").description("Manage app site (frontend app)").addCommand(getSiteDeployCommand()).addCommand(getSiteDevCommand()).addCommand(getSiteInstallCommand()).addCommand(getSiteOpenCommand());
251326
+ return new Command2("site").description("Manage app site (frontend app)").addCommand(getSiteDeployCommand()).addCommand(getSiteDevCommand()).addCommand(getSiteOpenCommand());
251327
251327
  }
251328
251328
 
251329
251329
  // src/core/types/generator.ts
@@ -255952,6 +255952,7 @@ function createProgram(context) {
255952
255952
  program.addCommand(getCreateCommand());
255953
255953
  program.addCommand(getScaffoldCommand());
255954
255954
  program.addCommand(getDashboardCommand());
255955
+ program.addCommand(getInstallCommand());
255955
255956
  program.addCommand(getBuildCommand());
255956
255957
  program.addCommand(getDeployCommand3());
255957
255958
  program.addCommand(getVisibilityCommand());
@@ -260021,4 +260022,4 @@ export {
260021
260022
  runCLI
260022
260023
  };
260023
260024
 
260024
- //# debugId=EEFD3770ED50B51764756E2164756E21
260025
+ //# debugId=E1C5E4972DC5C96964756E2164756E21