@kud/jira-cli 0.3.0 → 0.3.1
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 +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
|
|
13
13
|
// src/index.ts
|
|
14
14
|
import { realpathSync } from "fs";
|
|
15
|
+
import { createRequire } from "module";
|
|
15
16
|
import { fileURLToPath } from "url";
|
|
16
17
|
import { Command } from "commander";
|
|
17
18
|
import { isJiraApiError } from "@kud/jira";
|
|
@@ -837,7 +838,9 @@ Then add the custom fields you care about:
|
|
|
837
838
|
|
|
838
839
|
// src/index.ts
|
|
839
840
|
var program = new Command();
|
|
840
|
-
program.name("jira").description("Jira on the command line").version(
|
|
841
|
+
program.name("jira").description("Jira on the command line").version(
|
|
842
|
+
createRequire(import.meta.url)("../package.json").version
|
|
843
|
+
).addHelpText(
|
|
841
844
|
"after",
|
|
842
845
|
`
|
|
843
846
|
Setup:
|