Resolve packages during build