tcsetup 1.0.1 → 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 +19 -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
 
@@ -16,7 +22,9 @@ Options:
16
22
  --skip-bmad Skip BMAD Method install
17
23
  --skip-speckit Skip Spec Kit init
18
24
  --skip-agreements Skip Agreement System init
25
+ --skip-adr Skip ADR System init
19
26
  --skip-mermaid Skip Mermaid Workbench init
27
+ --skip-lifecycle Skip Feature Lifecycle Tracker init
20
28
  `;
21
29
 
22
30
  if (flags.includes("help") || flags.includes("--help") || flags.includes("-h")) {
@@ -40,14 +48,24 @@ const steps = [
40
48
  flag: "--skip-agreements",
41
49
  cmd: "npx agreement-system init --yes",
42
50
  },
51
+ {
52
+ name: "ADR System",
53
+ flag: "--skip-adr",
54
+ cmd: "npx adr-system init --yes",
55
+ },
43
56
  {
44
57
  name: "Mermaid Workbench",
45
58
  flag: "--skip-mermaid",
46
59
  cmd: "npx mermaid-workbench init",
47
60
  },
61
+ {
62
+ name: "Feature Lifecycle Tracker",
63
+ flag: "--skip-lifecycle",
64
+ cmd: "npx feature-lifecycle init --yes",
65
+ },
48
66
  ];
49
67
 
50
- console.log("\n tcsetup v1.0.0\n");
68
+ console.log(`\n tcsetup v${version}\n`);
51
69
 
52
70
  let current = 0;
53
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.1",
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": {