fix(sdk): type-narrow manifest.files in pack staging root helper (#95… · openclaw/openclaw@4db8296
wangmiao0668
·
2026-06-22
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -198,7 +198,7 @@ async function createPackStagingRoot(
|
198 | 198 | const stagingRoot = path.join(destinationRoot, `pack-${packageSlug}`); |
199 | 199 | await fs.mkdir(stagingRoot, { recursive: true }); |
200 | 200 | await fs.writeFile(path.join(stagingRoot, "package.json"), JSON.stringify(manifest, null, 2)); |
201 | | -const files = Array.isArray(manifest.files) ? manifest.files : []; |
| 201 | +const files: string[] = Array.isArray(manifest.files) ? (manifest.files as string[]) : []; |
202 | 202 | for (const entry of files) { |
203 | 203 | if (typeof entry !== "string") { |
204 | 204 | continue; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。