@stdout-design/cli 0.2.4 → 0.2.5
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/index.mjs +2 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3687,8 +3687,9 @@ const run = (moduleName, handlerName) => async (...args) => {
|
|
|
3687
3687
|
};
|
|
3688
3688
|
//#endregion
|
|
3689
3689
|
//#region src/index.ts
|
|
3690
|
+
const pkg = createRequire(import.meta.url)("../package.json");
|
|
3690
3691
|
const program = new Command().allowExcessArguments(true);
|
|
3691
|
-
program.name("studio").description("Social media design tool — render, preview, batch").version(
|
|
3692
|
+
program.name("studio").description("Social media design tool — render, preview, batch").version(pkg.version, "-v, -V, --version");
|
|
3692
3693
|
program.command("dev").description("Start the studio dev server with live preview").argument("[rootDir]", "Project root directory (default: cwd)").option("-p, --port <number>", "Port to run on", "3000").option("--open", "Open browser on start").action(run("dev"));
|
|
3693
3694
|
program.command("render").description("Render a template — single or batch with --data").argument("<template>", "Template ID from studio.config.ts").argument("[props...]", "Props as key=value pairs (e.g. title=\"Hello\")").option("--data <path>", "CSV or JSON data file for batch rendering").option("--preset <ids>", "Comma-separated preset IDs").option("--locale <locales>", "Comma-separated locale codes").option("--out-dir <path>", "Output directory").option("--concurrency <n>", "Max concurrent renders in batch mode", "4").option("--fail-fast", "Stop batch on first error").option("--json", "Output results as JSON").action(run("render"));
|
|
3694
3695
|
const cacheCmd = program.command("cache").description("Manage the render cache");
|