Skip to content

Commit a2b2a62

Browse files
Update src/jsTyping/jsTyping.ts
1 parent 7f169c1 commit a2b2a62

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/jsTyping/jsTyping.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ export function discoverTypings(
133133
const exclude = typeAcquisition.exclude || [];
134134

135135
// Directories to search for package.json, bower.json and other typing information
136-
if (!compilerOptions.types || compilerOptions.types?.includes("*")) {
136+
if (compilerOptions.types?.includes("*")) {
137+
137138
const possibleSearchDirs = new Set(fileNames.map(getDirectoryPath));
138139
possibleSearchDirs.add(projectRootPath);
139140
possibleSearchDirs.forEach(searchDir => {

0 commit comments

Comments
 (0)