-
Notifications
You must be signed in to change notification settings - Fork 12.8k
NPM 7 causes ATA to discover too many dependencies #44130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
#7179 (comment) asks the same question that I have, but was never answered π€·ββοΈ |
@zkat I'm not sure if there's a better way for Typing Installer to find actual top-level dependencies. What's your take? |
This information should be encoded in package-lock.json now. But also, if you want to make it package manager agnostic, is there a reason why you can't filter by "what's in package.json's Also I don't know what ATA is haha |
@zkat Welp, this is a good excuse to dive in :). ATA = Automatic Type Acquisition. I'm not sure about the rationale behind the current behavior, but I'm sure it can be improved as Typing Installer has been around for a while. |
ATA tried to use the `_requiredBy` field to determine toplevel deps, but this is not portable. Not only is it unavailable in npm@>=7, but neither Yarn nor pnpm write this metadata to node_modules pkgjsons. Fixes: microsoft#44130
ATA tried to use the `_requiredBy` field to determine toplevel deps, but this is not portable. Not only is it unavailable in npm@>=7, but neither Yarn nor pnpm write this metadata to node_modules pkgjsons. Fixes: microsoft#44130
ATA tried to use the `_requiredBy` field to determine toplevel deps, but this is not portable. Not only is it unavailable in npm@>=7, but neither Yarn nor pnpm write this metadata to node_modules pkgjsons. Fixes: microsoft#44130
ATA tried to use the `_requiredBy` field to determine toplevel deps, but this is not portable. Not only is it unavailable in npm@>=7, but neither Yarn nor pnpm write this metadata to node_modules pkgjsons. Fixes: microsoft#44130
ATA tried to use the `_requiredBy` field to determine toplevel deps, but this is not portable. Not only is it unavailable in npm@>=7, but neither Yarn nor pnpm write this metadata to node_modules pkgjsons. This also adds support for ATA acquiring types for scoped packages. Fixes: microsoft#44130
ATA tried to use the `_requiredBy` field to determine toplevel deps, but this is not portable. Not only is it unavailable in npm@>=7, but neither Yarn nor pnpm write this metadata to node_modules pkgjsons. This also adds support for ATA acquiring types for scoped packages. Fixes: microsoft#44130
ATA tried to use the `_requiredBy` field to determine toplevel deps, but this is not portable. Not only is it unavailable in npm@>=7, but neither Yarn nor pnpm write this metadata to node_modules pkgjsons. This also adds support for ATA acquiring types for scoped packages. Fixes: microsoft#44130
ATA tried to use the `_requiredBy` field to determine toplevel deps, but this is not portable. Not only is it unavailable in npm@>=7, but neither Yarn nor pnpm write this metadata to node_modules pkgjsons. This also adds support for ATA acquiring types for scoped packages. Fixes: #44130
Bug Report
π Search Terms
"npm 7"
π Version & Regression Information
β― Playground Link
N/A
π» Code
package.json
π Actual behavior
Typings installer log:
π Expected behavior
Typings installer log:
Investigation notes
ATA discovers typings from the node modules folder by parsing each depedency's
package.json
and using the_requiredBy
field to determine whether it's a top-level dependency or not.In NPM 7, this field was removed, so every dependency is considered top-level and has its typings installed.
The text was updated successfully, but these errors were encountered: