composter-cli 1.0.1 → 1.0.3

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/package.json +1 -1
  2. package/src/index.js +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "composter-cli",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "type": "module",
5
5
  "description": "CLI tool to manage and sync React components to your personal component vault",
6
6
  "main": "src/index.js",
package/src/index.js CHANGED
@@ -6,13 +6,17 @@ import { mkcat } from "./commands/mkcat.js";
6
6
  import { listCategories } from "./commands/listCat.js";
7
7
  import { pushComponent } from "./commands/push.js";
8
8
  import { pullComponent } from "./commands/pull.js";
9
+ import { createRequire } from "module";
10
+
11
+ const require = createRequire(import.meta.url);
12
+ const packageJson = require("../package.json");
9
13
 
10
14
  const program = new Command();
11
15
 
12
16
  program
13
17
  .name("composter")
14
18
  .description("CLI for Composter Platform")
15
- .version("0.1.0");
19
+ .version(packageJson.version);
16
20
 
17
21
  program
18
22
  .command("login")