mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-04 03:09:39 -06:00
Update src/jsTyping/jsTyping.ts
This commit is contained in:
parent
7f169c18f2
commit
a2b2a62d18
@ -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 => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user