@juppytt/fws 0.1.3 → 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.
- package/.claude/settings.local.json +2 -1
- package/bin/fws.ts +4 -1
- package/package.json +1 -1
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(
|
|
39
|
+
.version(pkg.version);
|
|
37
40
|
|
|
38
41
|
// === Server commands ===
|
|
39
42
|
const serverCmd = program.command('server');
|