Skip to content

Commit 2459faf

Browse files
committed
Add to message when lib names mismatch
1 parent f21bc20 commit 2459faf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/host/src/node/path-utils.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,10 @@ export function determineLibraryBasename(libraryPaths: string[]) {
425425
path.basename(p, path.extname(p)).replace(/^lib/, "")
426426
);
427427
const candidates = new Set<string>(libraryNames);
428-
assert(candidates.size === 1, "Expected all libraries to have the same name");
428+
assert(
429+
candidates.size === 1,
430+
`Expected all libraries to share name, got: ${[...candidates].join(", ")}`
431+
);
429432
const [name] = candidates;
430433
return name;
431434
}

0 commit comments

Comments
 (0)