I think we lack many tools to achieve that.
Really silly example do we have autonoums drones that can turn on electrical fuse. You have hundreds of those in any factory. Or even simpler: can robot change light bulb? One can say that you do not need those in automated factory, which would meaybe the case but I think it would be much easier to have simple external light instead of equipping each automaton with their own light instead. With more more and more complex machines the maintenance of those grows rather exponentially. Add to it miniaturisation and you have modern electronic parts like SOC computers and gpus - they are very hard to rapair and most of the time just get replaced - because it is easier. Can you create autonomous factories with such technology?
I do not think so. The whole process would have to be redesigned from the bottom up. And I mean everything, gathering resources, refinement of those, packaging, transport, assembly of more complex parts, energy distribution... Everything basically to operable by not humans but by some kind of unified autonomous drones of similar design. And those drones would have to be part of the same industrial process so made and maintained with similar drones. This is not easy to achieve within bounds of our current civilisation.
Probably something as simple as regular screw would have to be redesigned or replaced. I was trying to teach my kid to tight one of those not so long enough and it is not such easy thing to do for small child. Would autonomous drone would perform better? If specialised maybe. But you can't have hundreds of specialised drone designs if you want to build whole civilisation with them. After all human beings are mostly the same and we managed to built what we have now.