team-toon-tack 1.0.1 → 1.0.2

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.ts +7 -1
  2. package/package.json +3 -2
package/bin/cli.ts CHANGED
@@ -1,5 +1,11 @@
1
1
  #!/usr/bin/env bun
2
2
  import { resolve } from 'node:path';
3
+ import { readFileSync } from 'node:fs';
4
+
5
+ // Read version from package.json
6
+ const pkgPath = new URL('../package.json', import.meta.url).pathname;
7
+ const pkg = JSON.parse(readFileSync(pkgPath, 'utf-8'));
8
+ const VERSION = pkg.version;
3
9
 
4
10
  const COMMANDS = ['init', 'sync', 'work-on', 'done', 'help', 'version'] as const;
5
11
  type Command = typeof COMMANDS[number];
@@ -42,7 +48,7 @@ More info: https://github.com/wayne930242/team-toon-tack
42
48
  }
43
49
 
44
50
  function printVersion() {
45
- console.log('team-toon-tack v1.0.0');
51
+ console.log(`team-toon-tack v${VERSION}`);
46
52
  }
47
53
 
48
54
  function parseGlobalArgs(args: string[]): { dir: string; commandArgs: string[] } {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "team-toon-tack",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Linear task sync & management CLI with TOON format",
5
5
  "type": "module",
6
6
  "bin": {
@@ -14,7 +14,8 @@
14
14
  "files": [
15
15
  "bin",
16
16
  "scripts",
17
- "templates"
17
+ "templates",
18
+ "package.json"
18
19
  ],
19
20
  "scripts": {
20
21
  "start": "bun bin/cli.ts",