Skip to content

Commit

Permalink
chore: adjust error message
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Nov 8, 2024
1 parent ba4db2f commit 408ea3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ import { checkIsolatedDeclarations, getAllTypeScriptFiles, writeToFile } from '.
*/
export async function generateDeclarationsFromFiles(options?: DtsGenerationConfig): Promise<void> {
try {
// Check for isolatedModules setting
// Check for isolatedDeclarations setting
const isIsolatedDeclarations = await checkIsolatedDeclarations(options)
if (!isIsolatedDeclarations) {
console.error('Error: isolatedModules must be set to true in your tsconfig.json. Ensure `tsc --noEmit` does not output any errors.')
console.error('Error: isolatedDeclarations must be set to true in your tsconfig.json. Ensure `tsc --noEmit` does not output any errors.')
return
}

Expand Down

0 comments on commit 408ea3a

Please # to comment.