Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion scripts/package-smoke.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ async function pack(workspace) {
{ cwd: root },
);
const result = JSON.parse(stdout);
return join(temporaryDirectory, result[0].filename);
const metadata = Array.isArray(result)
? result[0]
: result[workspace] ?? Object.values(result)[0];
if (!metadata?.filename) {
throw new Error(`npm pack did not return metadata for ${workspace}.`);
}
return join(temporaryDirectory, metadata.filename);
}

try {
Expand Down
Loading