@lazycatcloud/lzc-cli 1.2.50 → 1.2.51

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/changelog.md CHANGED
@@ -1,6 +1,10 @@
1
+ # 1.2.51
2
+
3
+ 1. 添加 lzc-cli 版本信息到缓存 hash 中,当 lzc-cli 升级后,devshell 需要重新部署
4
+
1
5
  # 1.2.50
2
6
 
3
- 1. 添加 lzc-cli appstore push-image <image-name> 命令
7
+ 1. 添加 lzc-cli appstore copy-image <image-name> 命令
4
8
 
5
9
  # 1.2.49
6
10
 
@@ -21,7 +21,8 @@ import {
21
21
  resolveDomain,
22
22
  isWindows,
23
23
  isMacOs,
24
- isLinux
24
+ isLinux,
25
+ pkgInfo
25
26
  } from "../utils.js"
26
27
  import os from "node:os"
27
28
  import chokidar from "chokidar"
@@ -99,7 +100,8 @@ class AppDevShellMonitor {
99
100
  : ""
100
101
  this.newHash = {
101
102
  build: buildHash,
102
- manifest: manifestHash
103
+ manifest: manifestHash,
104
+ lzcVersion: pkgInfo.version
103
105
  }
104
106
  if (!_.isEqual(this.oldHash, this.newHash)) {
105
107
  fs.writeFileSync(this.cacheFilePath, JSON.stringify(this.newHash))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazycatcloud/lzc-cli",
3
- "version": "1.2.50",
3
+ "version": "1.2.51",
4
4
  "description": "lazycat cloud developer kit",
5
5
  "scripts": {
6
6
  "prepublishOnly": "node check-changelog.js"