Skip to content

Commit 5bc5f4c

Browse files
fix(sdk): type-narrow manifest.files in pack staging root helper
1 parent 97b97a9 commit 5bc5f4c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/sdk/src/package.e2e.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ async function createPackStagingRoot(
169169
const stagingRoot = path.join(destinationRoot, `pack-${packageSlug}`);
170170
await fs.mkdir(stagingRoot, { recursive: true });
171171
await fs.writeFile(path.join(stagingRoot, "package.json"), JSON.stringify(manifest, null, 2));
172-
const files = Array.isArray(manifest.files) ? manifest.files : [];
172+
const files: string[] = Array.isArray(manifest.files) ? (manifest.files as string[]) : [];
173173
for (const entry of files) {
174174
if (typeof entry !== "string") {
175175
continue;

0 commit comments

Comments
 (0)