Does a package resolve when resolving types for a directory (copying the behaviour that typescript does).