@lazycatcloud/lzc-cli 1.2.55 → 1.2.56

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,3 +1,7 @@
1
+ # 1.2.56
2
+
3
+ 1. 修复没有写权限的lpk文件,不能通过 lzc-cli app install 安装
4
+
1
5
  # 1.2.55
2
6
 
3
7
  1. 添加 lzc-docker 命令
package/lib/utils.js CHANGED
@@ -282,12 +282,10 @@ export function isDirExist(path) {
282
282
 
283
283
  export function isFileExist(path) {
284
284
  try {
285
- fs.accessSync(
286
- path,
287
- fs.constants.W_OK | fs.constants.R_OK | fs.constants.F_OK
288
- )
285
+ fs.accessSync(path, fs.constants.R_OK | fs.constants.F_OK)
289
286
  return true
290
- } catch {
287
+ } catch (err) {
288
+ logger.debug(`access ${path} error: ${err}`)
291
289
  return false
292
290
  }
293
291
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazycatcloud/lzc-cli",
3
- "version": "1.2.55",
3
+ "version": "1.2.56",
4
4
  "description": "lazycat cloud developer kit",
5
5
  "scripts": {
6
6
  "prepublishOnly": "node check-changelog.js"