@base44-preview/cli 0.1.20-pr.641.f4d57bc → 0.1.21-pr.642.f600707
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 +6 -5
- package/dist/cli/index.js.map +3 -3
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -239265,7 +239265,7 @@ import { join as join13 } from "node:path";
|
|
|
239265
239265
|
// package.json
|
|
239266
239266
|
var package_default = {
|
|
239267
239267
|
name: "base44",
|
|
239268
|
-
version: "0.1.
|
|
239268
|
+
version: "0.1.21",
|
|
239269
239269
|
description: "Base44 CLI - Unified interface for managing Base44 applications",
|
|
239270
239270
|
type: "module",
|
|
239271
239271
|
bin: {
|
|
@@ -251663,7 +251663,7 @@ function stopRunnerOnProcessSignals(runner) {
|
|
|
251663
251663
|
|
|
251664
251664
|
// src/cli/commands/site/dev.ts
|
|
251665
251665
|
var DEFAULT_SERVE_COMMAND = "npm run dev";
|
|
251666
|
-
async function siteDevAction(ctx) {
|
|
251666
|
+
async function siteDevAction(ctx, forwarded) {
|
|
251667
251667
|
const { app } = ctx;
|
|
251668
251668
|
if (!app?.projectRoot) {
|
|
251669
251669
|
throw new ConfigInvalidError("base44 site dev requires a linked local project. Run it from a project with base44/.app.jsonc.");
|
|
@@ -251673,7 +251673,8 @@ async function siteDevAction(ctx) {
|
|
|
251673
251673
|
if (!site) {
|
|
251674
251674
|
throw new InvalidInputError(`This project has no 'site' block in base44/config.jsonc, so there is no frontend to serve. Add one naming its serveCommand; site dev falls back to "npm run dev".`);
|
|
251675
251675
|
}
|
|
251676
|
-
const
|
|
251676
|
+
const serveCommand = site.serveCommand ?? DEFAULT_SERVE_COMMAND;
|
|
251677
|
+
const command = [serveCommand, ...forwarded].join(" ");
|
|
251677
251678
|
const runner = createServeCommandRunner({
|
|
251678
251679
|
serveCommand: command,
|
|
251679
251680
|
projectRoot: project.root,
|
|
@@ -251685,7 +251686,7 @@ async function siteDevAction(ctx) {
|
|
|
251685
251686
|
return { outroMessage: `Frontend dev server running '${command}'` };
|
|
251686
251687
|
}
|
|
251687
251688
|
function getSiteDevCommand() {
|
|
251688
|
-
return new Base44Command("dev", { requireAuth: false }).description("Run the site's dev server, with no local backend").action(siteDevAction);
|
|
251689
|
+
return new Base44Command("dev", { requireAuth: false }).description("Run the site's dev server, with no local backend").argument("[args...]", "Arguments appended to the serveCommand, after --").action(siteDevAction);
|
|
251689
251690
|
}
|
|
251690
251691
|
|
|
251691
251692
|
// src/cli/commands/site/install.ts
|
|
@@ -260489,4 +260490,4 @@ export {
|
|
|
260489
260490
|
runCLI
|
|
260490
260491
|
};
|
|
260491
260492
|
|
|
260492
|
-
//# debugId=
|
|
260493
|
+
//# debugId=109E5D924CF39A0264756E2164756E21
|