zdev 0.1.2 → 0.1.3

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.js CHANGED
@@ -3067,8 +3067,13 @@ Commands:`);
3067
3067
  }
3068
3068
 
3069
3069
  // src/index.ts
3070
+ import { readFileSync as readFileSync5 } from "fs";
3071
+ import { fileURLToPath } from "url";
3072
+ import { dirname, join as join4 } from "path";
3073
+ var __dirname2 = dirname(fileURLToPath(import.meta.url));
3074
+ var pkg = JSON.parse(readFileSync5(join4(__dirname2, "..", "package.json"), "utf-8"));
3070
3075
  var program2 = new Command;
3071
- program2.name("zdev").description("\uD83D\uDC02 zdev - Multi-agent worktree development environment").version("0.1.0");
3076
+ program2.name("zdev").description(`\uD83D\uDC02 zdev v${pkg.version} - Multi-agent worktree development environment`).version(pkg.version);
3072
3077
  program2.command("create <name>").description("Create a new TanStack Start project").option("--convex", "Add Convex backend integration").option("--flat", "Flat structure (no monorepo)").action(async (name, options) => {
3073
3078
  await create(name, {
3074
3079
  convex: options.convex,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zdev",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Multi-agent worktree development environment for cloud dev with preview URLs",
5
5
  "type": "module",
6
6
  "bin": {
package/src/index.ts CHANGED
@@ -8,13 +8,19 @@ import { list } from "./commands/list.js";
8
8
  import { clean } from "./commands/clean.js";
9
9
  import { seedExport, seedImport } from "./commands/seed.js";
10
10
  import { configCmd } from "./commands/config.js";
11
+ import { readFileSync } from "fs";
12
+ import { fileURLToPath } from "url";
13
+ import { dirname, join } from "path";
14
+
15
+ const __dirname = dirname(fileURLToPath(import.meta.url));
16
+ const pkg = JSON.parse(readFileSync(join(__dirname, "..", "package.json"), "utf-8"));
11
17
 
12
18
  const program = new Command();
13
19
 
14
20
  program
15
21
  .name("zdev")
16
- .description("🐂 zdev - Multi-agent worktree development environment")
17
- .version("0.1.0");
22
+ .description(`🐂 zdev v${pkg.version} - Multi-agent worktree development environment`)
23
+ .version(pkg.version);
18
24
 
19
25
  // zdev create
20
26
  program