@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.
Files changed (2) hide show
  1. package/dist/index.js +4 -1
  2. 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("0.2.0").addHelpText(
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:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kud/jira-cli",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "type": "module",
5
5
  "description": "Jira on the command line — read issues, comments and attachments as plain text",
6
6
  "keywords": [