Skip to content

Commit 68c0d1f

Browse files
authored
fix(scripts): log when types not present in downlevel script (#3307)
1 parent 23a2463 commit 68c0d1f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Diff for: scripts/downlevel-dts/downlevelWorkspace.mjs

+2-4
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@ export const downlevelWorkspace = async (workspacesDir, workspaceName) => {
2020
try {
2121
await access(declarationDir);
2222
} catch (error) {
23-
throw new Error(
24-
`The types for "${workspaceName}" do not exist.\n` +
25-
`Please build types for workspace "${workspaceDir}" before running downlevel-dts script.`
26-
);
23+
console.log(`The types for "${workspaceName}" do not exist.\n`);
24+
return;
2725
}
2826

2927
const downlevelDir = join(declarationDir, downlevelDirname);

0 commit comments

Comments
 (0)