@lazycatcloud/lzc-cli 2.0.0-pre.1 → 2.0.0-pre.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.
package/README.md CHANGED
@@ -56,6 +56,30 @@ lzc-cli appstore publish
56
56
 
57
57
  [changelog](./changelog.md)
58
58
 
59
+ #### images 本地构建
60
+
61
+ `lzc-build.yml:images.<alias>.builder` 支持两种模式:
62
+
63
+ 1. `remote`:默认值。在微服上的 developer tools 中构建镜像。
64
+ 2. `local`:在开发机本地构建镜像,再上传给 developer tools 生成最终的 `images/` 与 `images.lock`。
65
+
66
+ 示例:
67
+
68
+ ```yml
69
+ images:
70
+ app-runtime:
71
+ builder: local
72
+ dockerfile: ./images/Dockerfile
73
+ context: ./images
74
+ ```
75
+
76
+ 说明:
77
+
78
+ 1. `builder=local` 的目标平台会自动从当前目标微服获取,例如 `linux/amd64`。
79
+ 2. `builder=local` 依赖开发机本地可用的 Docker/buildx 兼容命令。
80
+ 3. 基础镜像需要开发机自己能够拉取;如果当前网络环境有限制,建议显式使用可访问的镜像地址。
81
+ 4. `upstream-match` 对 `builder=remote` 与 `builder=local` 都生效;`builder=local` 会优先读取本地构建器元数据,必要时再根据 Dockerfile 的最终基底镜像推导上游层。
82
+
59
83
  #### box add-by-ssh 远端直连模式
60
84
 
61
85
  当运行环境无法使用 `hclient` 时,可通过 `box add-by-ssh` 配置远端 ssh 目标,由 `lzc-cli` 直连 `lzcos ssh` 并在远端执行 debug bridge 命令。
package/changelog.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.0.0-pre.2](https://gitee.com/linakesi/lzc-cli/compare/v2.0.0-pre.1...v2.0.0-pre.2) (2026-03-12)
4
+
5
+ ### Bug Fixes
6
+
7
+ - publish the current LPK v2 preview through the `lpkv2` dist-tag
8
+
3
9
  ## [2.0.0-pre.1](https://gitee.com/linakesi/lzc-cli/compare/v1.3.17...v2.0.0-pre.1) (2026-03-11)
4
10
 
5
11
  ### Features
package/lib/app/index.js CHANGED
@@ -114,7 +114,7 @@ export function lpkProjectCommand(program) {
114
114
  return;
115
115
  }
116
116
 
117
- throw new Error('Project name is required unless --in-place is used.');
117
+ throw new Error('Missing project directory name. Use "lzc-cli project create <name>" to create a new project, or "lzc-cli project create --in-place" to initialize the current directory.');
118
118
  },
119
119
  },
120
120
  {
@@ -374,7 +374,7 @@ function resolveParentBuildConfigPath(optionsFilePath) {
374
374
  }
375
375
  const parentPath = path.join(path.dirname(optionsFilePath), 'lzc-build.yml');
376
376
  if (!isFileExist(parentPath)) {
377
- throw new Error(`Build config file not found: ${parentPath}`);
377
+ return '';
378
378
  }
379
379
  return parentPath;
380
380
  }