mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-09 15:59:30 +00:00
fix(sdk): type-narrow manifest.files in pack staging root helper (#95465)
This commit is contained in:
parent
e046dbb52d
commit
4db829646a
1 changed files with 1 additions and 1 deletions
|
|
@ -198,7 +198,7 @@ async function createPackStagingRoot(
|
|||
const stagingRoot = path.join(destinationRoot, `pack-${packageSlug}`);
|
||||
await fs.mkdir(stagingRoot, { recursive: true });
|
||||
await fs.writeFile(path.join(stagingRoot, "package.json"), JSON.stringify(manifest, null, 2));
|
||||
const files = Array.isArray(manifest.files) ? manifest.files : [];
|
||||
const files: string[] = Array.isArray(manifest.files) ? (manifest.files as string[]) : [];
|
||||
for (const entry of files) {
|
||||
if (typeof entry !== "string") {
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue