Add @flowtyped scope resolution before actual Node resolution
Proof of concept for #7750
Issues
-
Depends on flow-typed NPM migration
-
Clashes with (in particular if there would be migration period from old libdefs to .js.flow)
[libs]
node_modules/@flowtyped
@nmote this doesn't actually work if this and [libs] .json fix both get merged, because @flowtyped is still using libdefs
I tried to implement there this feature request #4917. Not sure how slower this makes dependency resolving, this basically reads package.json on every import
@jedwards1211 I think you would be interested to check this out?
Thanks, though I've never found time to learn much OCaml so it's hard for me to tell exactly what this is doing...what do you mean by versioned .js.flow? I didn't see anything in your proposal repo about it
@jedwards1211 check tests in this PR, they're in JS. I still didn't updated proposal, because when I profiled this it increases time of dependency resolution significantly :\
https://github.com/facebook/flow/tree/d4176e0a9b0487bd1abee050d0db2fba94521bfd/tests/declaration_files_node_versions Particurarly package.json of node_modules