tcsetup 1.0.4 → 1.0.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.
Files changed (2) hide show
  1. package/bin/cli.js +7 -1
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  import { execSync } from "node:child_process";
4
4
  import { argv } from "node:process";
5
+ import { readFileSync } from "node:fs";
6
+ import { fileURLToPath } from "node:url";
7
+ import { dirname, join } from "node:path";
8
+
9
+ const __dirname = dirname(fileURLToPath(import.meta.url));
10
+ const { version } = JSON.parse(readFileSync(join(__dirname, "..", "package.json"), "utf8"));
5
11
 
6
12
  const flags = argv.slice(2);
7
13
 
@@ -59,7 +65,7 @@ const steps = [
59
65
  },
60
66
  ];
61
67
 
62
- console.log("\n tcsetup v1.0.0\n");
68
+ console.log(`\n tcsetup v${version}\n`);
63
69
 
64
70
  let current = 0;
65
71
  const total = steps.filter((s) => !flags.includes(s.flag)).length;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tcsetup",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "type": "module",
5
5
  "description": "Bootstrap a new project with BMAD, Spec Kit, Agreement System, and Mermaid Workbench in one command.",
6
6
  "bin": {