@juppytt/fws 0.1.2 → 0.1.4

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.
@@ -66,7 +66,13 @@
66
66
  "Bash(npm view:*)",
67
67
  "Bash(mock-gws --help)",
68
68
  "Bash(mock-gws gmail:*)",
69
- "Bash(npm publish:*)"
69
+ "Bash(npm publish:*)",
70
+ "Bash(npm pkg:*)",
71
+ "Bash(sed:*)",
72
+ "Bash(gh issue:*)",
73
+ "Bash(gh pr:*)",
74
+ "Bash(npm version:*)",
75
+ "Bash(fws:*)"
70
76
  ]
71
77
  }
72
78
  }
package/bin/fws.ts CHANGED
@@ -29,11 +29,14 @@ async function ensureDir(dir: string): Promise<void> {
29
29
  await fs.mkdir(dir, { recursive: true });
30
30
  }
31
31
 
32
+ import { createRequire } from 'node:module';
33
+ const pkg = createRequire(import.meta.url)('../package.json');
34
+
32
35
  const program = new Command();
33
36
  program
34
37
  .name('fws')
35
38
  .description('Fake Google Workspace — local mock server for gws CLI testing')
36
- .version('0.1.0');
39
+ .version(pkg.version);
37
40
 
38
41
  // === Server commands ===
39
42
  const serverCmd = program.command('server');
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@juppytt/fws",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Fake Google Workspace — local mock server for gws CLI testing",
5
5
  "type": "module",
6
6
  "bin": {
7
- "fws": "./bin/fws-cli.js"
7
+ "fws": "bin/fws-cli.js"
8
8
  },
9
9
  "scripts": {
10
10
  "start": "tsx bin/fws.ts server start",