fix(apes-sidebar): dsh 声明改嵌套格式(修 DSH 拒绝加载)

根因:package.json 用扁平键 dsh.bundle.patch / dsh.client.inject /
dsh.client.platform,但 DSH loadRecoveryFilteredProfile 只认嵌套
dsh 对象({ bundle: { patch }, client: { inject, platform } })。
扁平格式导致 DSH 报 'profile bundle apes-sidebar declares no
dsh.bundle' → 恢复模式循环。

修正为与 dsh-better-sidebar 0.18.0 一致的嵌套格式:
  dsh: {
    bundle: { patch: './cordis.patch.yml' },
    client: { inject: [betterSidebar, locale, sessions], platform: web }
  }

验证:node_modules/apes-sidebar 的 dsh.bundle 字段存在,
格式与 better-sidebar 逐键一致(Object.keys 比对 true)。

门禁:typecheck rc=0 · build rc=0 · test 29/29
This commit is contained in:
figmar
2026-09-04 21:08:09 +08:00
parent 4e60dde18d
commit cfc9d3c884
+13 -7
View File
@@ -52,12 +52,18 @@
"node": ">=20"
},
"packageManager": "pnpm@11.8.0",
"dsh.bundle.patch": "./cordis.patch.yml",
"dsh.client.inject": [
"betterSidebar",
"locale",
"sessions"
],
"dsh.client.platform": "web",
"dsh": {
"bundle": {
"patch": "./cordis.patch.yml"
},
"client": {
"inject": [
"betterSidebar",
"locale",
"sessions"
],
"platform": "web"
}
},
"license": "MIT"
}