mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-19 00:42:28 -05:00
Update src/jsTyping/jsTyping.ts
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user