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.
- package/dist/index.js +8 -1
- 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(
|
|
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);
|