mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-09 12:15:34 -06:00
Adding optionalDependencies and peerDependencies to the list typings to merge in if present.
This commit is contained in:
parent
5981d8e60c
commit
f76ef47174
@ -173,6 +173,12 @@ namespace ts.JsTyping {
|
||||
if (hasProperty(jsonDict, "devDependencies")) {
|
||||
mergeTypings(getKeys(jsonDict.devDependencies));
|
||||
}
|
||||
if (hasProperty(jsonDict, "optionalDependencies")) {
|
||||
mergeTypings(getKeys(jsonDict.optionalDependencies));
|
||||
}
|
||||
if (hasProperty(jsonDict, "peerDependencies")) {
|
||||
mergeTypings(getKeys(jsonDict.peerDependencies));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user