Space shipyards manufacture ships from previously created designs. They also have an assembly plant to produce the necessary modules that are not available.