uniqueui-cli 0.1.7 → 0.1.8

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 +2 -2
package/dist/index.js CHANGED
@@ -2,13 +2,16 @@
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  const commander_1 = require("commander");
5
+ const fs_1 = require("fs");
6
+ const path_1 = require("path");
5
7
  const init_1 = require("./commands/init");
6
8
  const add_1 = require("./commands/add");
9
+ const pkg = JSON.parse((0, fs_1.readFileSync)((0, path_1.join)(__dirname, "../package.json"), "utf-8"));
7
10
  const program = new commander_1.Command();
8
11
  program
9
12
  .name("uniqueui")
10
13
  .description("Add components from UniqueUI to your project")
11
- .version("0.1.4");
14
+ .version(pkg.version);
12
15
  program
13
16
  .command("init")
14
17
  .description("Configure your project for UniqueUI")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uniqueui-cli",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "CLI to add beautiful animated UI components from UniqueUI to your React project",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -59,4 +59,4 @@
59
59
  "@types/prompts": "^2.4.9",
60
60
  "typescript": "^5.3.3"
61
61
  }
62
- }
62
+ }