@lazycatcloud/lzc-cli 2.0.0-pre.2 → 2.0.0-pre.3
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 +10 -0
- package/lib/app/lpk_build.js +4 -7
- package/package.json +1 -1
- package/template/_lpk/README.md +1 -0
package/changelog.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.0.0-pre.3](https://gitee.com/linakesi/lzc-cli/compare/v2.0.0-pre.2...v2.0.0-pre.3) (2026-03-12)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- refresh the backend template assets and set `mini_os_version` to `v1.5.0`
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
- use top-level override semantics for dev build config
|
|
12
|
+
|
|
3
13
|
## [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
14
|
|
|
5
15
|
### Bug Fixes
|
package/lib/app/lpk_build.js
CHANGED
|
@@ -11,7 +11,6 @@ import yaml from 'js-yaml';
|
|
|
11
11
|
import { buildConfiguredImagesToTempDir } from './lpk_build_images.js';
|
|
12
12
|
import { pipeline } from 'node:stream/promises';
|
|
13
13
|
import { t } from '../i18n/index.js';
|
|
14
|
-
import mergeWith from 'lodash.mergewith';
|
|
15
14
|
|
|
16
15
|
async function archiveFolderTo(appDir, out, format = 'zip') {
|
|
17
16
|
return new Promise(async (resolve, reject) => {
|
|
@@ -298,12 +297,10 @@ function formatBytes(bytes) {
|
|
|
298
297
|
}
|
|
299
298
|
|
|
300
299
|
function mergeBuildOptions(baseOptions, topOptions) {
|
|
301
|
-
return
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
return undefined;
|
|
306
|
-
});
|
|
300
|
+
return {
|
|
301
|
+
...(baseOptions ?? {}),
|
|
302
|
+
...(topOptions ?? {}),
|
|
303
|
+
};
|
|
307
304
|
}
|
|
308
305
|
|
|
309
306
|
function applyPkgIdSuffix(packageId, suffix) {
|
package/package.json
CHANGED
package/template/_lpk/README.md
CHANGED
|
@@ -9,6 +9,7 @@ lzc-cli project info
|
|
|
9
9
|
默认情况下,project 命令在存在 `lzc-build.dev.yml` 时会优先使用它。
|
|
10
10
|
每个命令都会打印实际使用的 `Build config`。
|
|
11
11
|
如果要操作 `lzc-build.yml`,请显式加上 `--release`。
|
|
12
|
+
`lzc-build.dev.yml` 中出现的同名顶层字段会整体覆盖 `lzc-build.yml`,不会做递归 merge。
|
|
12
13
|
如果是前端模板,`project deploy` 会按 `buildscript` 自动安装依赖并完成构建,不需要额外先执行 `npm install`。
|
|
13
14
|
|
|
14
15
|
## 构建
|