bod-cli 0.5.6 → 0.5.7
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.js +4 -1
- package/package.json +1 -1
- package/src/commands/serve.ts +2 -0
package/dist/cli.js
CHANGED
|
@@ -19919,7 +19919,8 @@ var serve_default = defineCommand2({
|
|
|
19919
19919
|
dir: { type: "positional", description: "Directory to serve (default: .)", required: false },
|
|
19920
19920
|
port: { type: "string", description: "Port (default: 3000)" },
|
|
19921
19921
|
mount: { type: "string", description: "API mount path (default: /api)" },
|
|
19922
|
-
"no-build": { type: "boolean", description: "Skip build step" }
|
|
19922
|
+
"no-build": { type: "boolean", description: "Skip build step" },
|
|
19923
|
+
"db-port": { type: "string", description: "BodDB port (default: 4460)" }
|
|
19923
19924
|
},
|
|
19924
19925
|
async run({ args }) {
|
|
19925
19926
|
const servePath = resolveBodifyServe();
|
|
@@ -19930,6 +19931,8 @@ var serve_default = defineCommand2({
|
|
|
19930
19931
|
cmd.push("--no-build");
|
|
19931
19932
|
if (args.mount)
|
|
19932
19933
|
cmd.push(`--mount=${args.mount}`);
|
|
19934
|
+
if (args["db-port"])
|
|
19935
|
+
cmd.push(`--db-port=${args["db-port"]}`);
|
|
19933
19936
|
const proc = Bun.spawn(cmd, { stdout: "inherit", stderr: "inherit", stdin: "inherit" });
|
|
19934
19937
|
await proc.exited;
|
|
19935
19938
|
}
|
package/package.json
CHANGED
package/src/commands/serve.ts
CHANGED
|
@@ -27,6 +27,7 @@ export default defineCommand({
|
|
|
27
27
|
port: { type: 'string', description: 'Port (default: 3000)' },
|
|
28
28
|
mount: { type: 'string', description: 'API mount path (default: /api)' },
|
|
29
29
|
'no-build': { type: 'boolean', description: 'Skip build step' },
|
|
30
|
+
'db-port': { type: 'string', description: 'BodDB port (default: 4460)' },
|
|
30
31
|
},
|
|
31
32
|
async run({ args }) {
|
|
32
33
|
const servePath = resolveBodifyServe()
|
|
@@ -34,6 +35,7 @@ export default defineCommand({
|
|
|
34
35
|
if (args.port) cmd.push(`--port=${args.port}`)
|
|
35
36
|
if (args['no-build']) cmd.push('--no-build')
|
|
36
37
|
if (args.mount) cmd.push(`--mount=${args.mount}`)
|
|
38
|
+
if (args['db-port']) cmd.push(`--db-port=${args['db-port']}`)
|
|
37
39
|
|
|
38
40
|
const proc = Bun.spawn(cmd, { stdout: 'inherit', stderr: 'inherit', stdin: 'inherit' })
|
|
39
41
|
await proc.exited
|