@base44-preview/cli 0.1.20-pr.641.f4d57bc → 0.1.21-pr.642.259f7d0
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 +20 -5
- package/dist/cli/index.js.map +5 -4
- 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: {
|
|
@@ -251495,6 +251495,21 @@ function parseConcurrency(value) {
|
|
|
251495
251495
|
return parsed;
|
|
251496
251496
|
}
|
|
251497
251497
|
|
|
251498
|
+
// src/cli/dev/append-serve-args.ts
|
|
251499
|
+
var SHELL_SAFE = /^[\w@%+=:,./-]+$/;
|
|
251500
|
+
function quote(arg, platform) {
|
|
251501
|
+
if (SHELL_SAFE.test(arg)) {
|
|
251502
|
+
return arg;
|
|
251503
|
+
}
|
|
251504
|
+
if (platform === "win32") {
|
|
251505
|
+
return `"${arg.replace(/"/g, "\\\"")}"`;
|
|
251506
|
+
}
|
|
251507
|
+
return `'${arg.replace(/'/g, "'\\''")}'`;
|
|
251508
|
+
}
|
|
251509
|
+
function appendServeArgs(command, args, platform = process.platform) {
|
|
251510
|
+
return [command, ...args.map((arg) => quote(arg, platform))].join(" ");
|
|
251511
|
+
}
|
|
251512
|
+
|
|
251498
251513
|
// src/cli/dev/createDevLogger.ts
|
|
251499
251514
|
var colorByType = {
|
|
251500
251515
|
error: theme.styles.error,
|
|
@@ -251663,7 +251678,7 @@ function stopRunnerOnProcessSignals(runner) {
|
|
|
251663
251678
|
|
|
251664
251679
|
// src/cli/commands/site/dev.ts
|
|
251665
251680
|
var DEFAULT_SERVE_COMMAND = "npm run dev";
|
|
251666
|
-
async function siteDevAction(ctx) {
|
|
251681
|
+
async function siteDevAction(ctx, forwarded) {
|
|
251667
251682
|
const { app } = ctx;
|
|
251668
251683
|
if (!app?.projectRoot) {
|
|
251669
251684
|
throw new ConfigInvalidError("base44 site dev requires a linked local project. Run it from a project with base44/.app.jsonc.");
|
|
@@ -251673,7 +251688,7 @@ async function siteDevAction(ctx) {
|
|
|
251673
251688
|
if (!site) {
|
|
251674
251689
|
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
251690
|
}
|
|
251676
|
-
const command = site.serveCommand ?? DEFAULT_SERVE_COMMAND;
|
|
251691
|
+
const command = appendServeArgs(site.serveCommand ?? DEFAULT_SERVE_COMMAND, forwarded);
|
|
251677
251692
|
const runner = createServeCommandRunner({
|
|
251678
251693
|
serveCommand: command,
|
|
251679
251694
|
projectRoot: project.root,
|
|
@@ -251685,7 +251700,7 @@ async function siteDevAction(ctx) {
|
|
|
251685
251700
|
return { outroMessage: `Frontend dev server running '${command}'` };
|
|
251686
251701
|
}
|
|
251687
251702
|
function getSiteDevCommand() {
|
|
251688
|
-
return new Base44Command("dev", { requireAuth: false }).description("Run the site's dev server, with no local backend").action(siteDevAction);
|
|
251703
|
+
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
251704
|
}
|
|
251690
251705
|
|
|
251691
251706
|
// src/cli/commands/site/install.ts
|
|
@@ -260489,4 +260504,4 @@ export {
|
|
|
260489
260504
|
runCLI
|
|
260490
260505
|
};
|
|
260491
260506
|
|
|
260492
|
-
//# debugId=
|
|
260507
|
+
//# debugId=C9E0B5EF532B747464756E2164756E21
|