Skip to content

Commit

Permalink
fix(no-missing-exports): correctly check the 'types' field
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Oct 11, 2023
1 parent 8e31933 commit eef4876
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -123,7 +123,7 @@ const noMissingExports = createRule({
} else if (
baseExportName === CONDITIONAL_EXPORT_TYPES &&
opts.types &&
!path.extname(relativePath).endsWith('.d.ts')
!relativePath.endsWith('.d.ts')
) {
return fail(
baseExportName
Expand Down

0 comments on commit eef4876

Please sign in to comment.