@base44-preview/cli 0.1.21-pr.642.259f7d0 → 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 +3 -17
- package/dist/cli/index.js.map +4 -5
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -251495,21 +251495,6 @@ 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
|
-
|
|
251513
251498
|
// src/cli/dev/createDevLogger.ts
|
|
251514
251499
|
var colorByType = {
|
|
251515
251500
|
error: theme.styles.error,
|
|
@@ -251688,7 +251673,8 @@ async function siteDevAction(ctx, forwarded) {
|
|
|
251688
251673
|
if (!site) {
|
|
251689
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".`);
|
|
251690
251675
|
}
|
|
251691
|
-
const
|
|
251676
|
+
const serveCommand = site.serveCommand ?? DEFAULT_SERVE_COMMAND;
|
|
251677
|
+
const command = [serveCommand, ...forwarded].join(" ");
|
|
251692
251678
|
const runner = createServeCommandRunner({
|
|
251693
251679
|
serveCommand: command,
|
|
251694
251680
|
projectRoot: project.root,
|
|
@@ -260504,4 +260490,4 @@ export {
|
|
|
260504
260490
|
runCLI
|
|
260505
260491
|
};
|
|
260506
260492
|
|
|
260507
|
-
//# debugId=
|
|
260493
|
+
//# debugId=109E5D924CF39A0264756E2164756E21
|