Closed septs closed 5 years ago
Doing this would automatically uninstall ambient typings like @types/node
which is undesirable.
@jeffijoe include global definition cannot be removed
This idea can only be processed without a global definition because he has no side effects.
➜ Downloads # no side-effects libraries
➜ Downloads cat search-index-min.json | jq '(.[].g | length) == 0' | grep 'true' | wc -l
4880
➜ Downloads # side-effects libraries
➜ Downloads cat search-index-min.json | jq '(.[].g | length) > 0' | grep 'true' | wc -l
1166
m
(modules) field for check insearch-index-min.json
.g
(globals) field have side effects e.q:@types/jquery
only use typingsearch-index-min.json
structure definition: https://github.com/microsoft/types-publisher/blob/467eb14e3fe0204aa0f5e06549271fa4bea457e1/src/create-search-index.ts#L21-L34