@calo-design/cli 0.13.4 → 0.13.6

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.
Files changed (2) hide show
  1. package/bin/backend.js +10 -3
  2. package/package.json +1 -1
package/bin/backend.js CHANGED
@@ -192,9 +192,11 @@ async function cmdInit(args) {
192
192
  warn("app key was re-minted for this reconnect — run `calo-design backend deploy` to activate it");
193
193
  }
194
194
 
195
- // Glue: the one sanctioned way app code reaches the backend.
195
+ // Glue: the one sanctioned way app code reaches the backend. Always generated —
196
+ // Expo Router projects that only use app/ still get src/backend.ts.
196
197
  const glue = path.join(root, "src", "backend.ts");
197
- if (fs.existsSync(path.join(root, "src")) && !fs.existsSync(glue)) {
198
+ if (!fs.existsSync(glue)) {
199
+ fs.mkdirSync(path.join(root, "src"), { recursive: true });
198
200
  fs.writeFileSync(
199
201
  glue,
200
202
  `// Generated by \`calo-design backend init\` — app code talks to this prototype's\n` +
@@ -251,7 +253,12 @@ async function cmdDeploy(args) {
251
253
  if (out.migrations && out.migrations.ran) log(c.dim(" migrations applied"));
252
254
  log(c.dim(` next: calo-design backend check`));
253
255
  // Pair the deploy with its exact source — best-effort by contract, never fails the deploy.
254
- await autoCheckpoint({ root, note: `backend deploy ${out.deployHash.slice(0, 8)}`, publishedUrl: out.url });
256
+ // --note labels the checkpoint too (same contract as share/push).
257
+ await autoCheckpoint({
258
+ root,
259
+ note: flag(args, "note") || `backend deploy ${out.deployHash.slice(0, 8)}`,
260
+ publishedUrl: out.url,
261
+ });
255
262
  } finally {
256
263
  fs.rmSync(tgz, { force: true });
257
264
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@calo-design/cli",
3
- "version": "0.13.4",
3
+ "version": "0.13.6",
4
4
  "description": "One-line setup for Calo design tooling: logs in with your Calo email and installs the calo-design skill + design-system packages. No GitHub account needed.",
5
5
  "bin": {
6
6
  "calo-design": "bin/cli.js"