Skip to content

Commit

Permalink
fix(scripts): log when types not present in downlevel script (#3307)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr committed Feb 11, 2022
1 parent 23a2463 commit 68c0d1f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripts/downlevel-dts/downlevelWorkspace.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@ export const downlevelWorkspace = async (workspacesDir, workspaceName) => {
try {
await access(declarationDir);
} catch (error) {
throw new Error(
`The types for "${workspaceName}" do not exist.\n` +
`Please build types for workspace "${workspaceDir}" before running downlevel-dts script.`
);
console.log(`The types for "${workspaceName}" do not exist.\n`);
return;
}

const downlevelDir = join(declarationDir, downlevelDirname);
Expand Down

0 comments on commit 68c0d1f

Please sign in to comment.