Update src/jsTyping/jsTyping.ts

This commit is contained in:
Ryan Cavanaugh 2026-01-27 11:46:06 -08:00 committed by GitHub
parent 7f169c18f2
commit a2b2a62d18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -133,7 +133,8 @@ export function discoverTypings(
const exclude = typeAcquisition.exclude || [];
// Directories to search for package.json, bower.json and other typing information
if (!compilerOptions.types || compilerOptions.types?.includes("*")) {
if (compilerOptions.types?.includes("*")) {
const possibleSearchDirs = new Set(fileNames.map(getDirectoryPath));
possibleSearchDirs.add(projectRootPath);
possibleSearchDirs.forEach(searchDir => {