Skip to content

Commit cdf7f7c

Browse files
authored
fix: fix full package bug for watch mode (#117)
Signed-off-by: lilei946 <snowinter2008@gmail.com>
1 parent c95f0f1 commit cdf7f7c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/hap-shared-utils/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ export function isNeedFullPackage() {
450450
manifest &&
451451
manifest.router &&
452452
manifest.router.pages &&
453-
manifest.router.pages.length > 0 &&
453+
Object.keys(manifest.router.pages).length > 0 &&
454454
(!manifest.subpackages || manifest.subpackages.length === 0)
455455
) {
456456
// 存在卡片

packages/hap-toolkit/__tests__/__snapshots__/compile.test.js.snap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,8 @@ versionCode 字段必须为 Integer 类型
317317
318318
[LOG] ### App Loader ### 'com.application.demo.__preview___CardDemo.rpk' 大小为 10 KB
319319
320+
[LOG] ### App Loader ### 项目构建并生成文件:com.application.demo.__preview__.debug.1.0.0.rpk
321+
320322
[LOG] ### App Loader ### 项目构建并生成文件:com.application.demo.__preview__.debug.1.0.0.rpks
321323
322324
[LOG] ### App Server ### 没有记录手机地址,不会通知手机更新rpk文件

0 commit comments

Comments
 (0)