[major] Correctly resolves all packages and creates tidy structure.