From eef4876aec239ca594795da2295ea3f3b171286f Mon Sep 17 00:00:00 2001 From: Christopher Hiller Date: Wed, 11 Oct 2023 15:22:07 -0700 Subject: [PATCH] fix(no-missing-exports): correctly check the 'types' field --- .../midnight-smoker/src/rules/builtin/no-missing-exports.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/midnight-smoker/src/rules/builtin/no-missing-exports.ts b/packages/midnight-smoker/src/rules/builtin/no-missing-exports.ts index 266ed7c9..b66278a0 100644 --- a/packages/midnight-smoker/src/rules/builtin/no-missing-exports.ts +++ b/packages/midnight-smoker/src/rules/builtin/no-missing-exports.ts @@ -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