specdown-cli 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.
Files changed (2) hide show
  1. package/dist/index.js +8 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -53,6 +53,11 @@ function checkForUpdate() {
53
53
  });
54
54
  }
55
55
 
56
+ // src/index.ts
57
+ import { createRequire as createRequire2 } from "module";
58
+ import { fileURLToPath as fileURLToPath2 } from "url";
59
+ import { dirname as dirname3, join as join3 } from "path";
60
+
56
61
  // src/commands/login.ts
57
62
  import http from "http";
58
63
  import { exec } from "child_process";
@@ -658,9 +663,11 @@ async function search(query, opts) {
658
663
  }
659
664
 
660
665
  // src/index.ts
666
+ var _require = createRequire2(import.meta.url);
667
+ var _pkg = _require(join3(dirname3(fileURLToPath2(import.meta.url)), "../package.json"));
661
668
  checkForUpdate();
662
669
  var program = new Command();
663
- program.name("specdown").description("Manage SpecDown docs from your terminal").version("0.1.0");
670
+ program.name("specdown").description("Manage SpecDown docs from your terminal").version(_pkg.version);
664
671
  program.command("login").description("Log in to SpecDown").action(login);
665
672
  program.command("logout").description("Log out").action(logout);
666
673
  program.command("whoami").description("Show current user and active project").action(whoami);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "specdown-cli",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "CLI for SpecDown — manage spec docs from your terminal",
5
5
  "type": "module",
6
6
  "engines": {