@easyv/screen-cli 0.1.1 → 0.1.2

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
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const node_fs_1 = require("node:fs");
4
+ const node_path_1 = require("node:path");
3
5
  const commander_1 = require("commander");
4
6
  const auth_1 = require("./commands/auth");
5
7
  const component_1 = require("./commands/component");
@@ -7,11 +9,12 @@ const data_1 = require("./commands/data");
7
9
  const debug_1 = require("./commands/debug");
8
10
  const screen_1 = require("./commands/screen");
9
11
  const skills_1 = require("./commands/skills");
12
+ const { version } = JSON.parse((0, node_fs_1.readFileSync)((0, node_path_1.join)(__dirname, '..', 'package.json'), 'utf8'));
10
13
  const program = new commander_1.Command();
11
14
  program
12
15
  .name('easyv-screen')
13
16
  .description('用命令驱动 EasyV 大屏:搭建、修改、排查,以及从零开发组件')
14
- .version('0.1.0')
17
+ .version(version)
15
18
  .option('--json', '输出 JSON。现在默认就是 JSON,这个参数可以不写');
16
19
  (0, auth_1.registerAuth)(program);
17
20
  (0, screen_1.registerScreen)(program);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyv/screen-cli",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "用自然语言驱动 EasyV 大屏的命令行工具:搭建、修改、排查,以及从零开发组件",
5
5
  "bin": {
6
6
  "easyv-screen": "bin/easyv-screen.js"