The moon's crust is 99% feldspar, olivine and other volcanic rock. Everyone here should know that olivine isn't worth anything and there is literally no shortage of it here on earth. There is nothing worth mining there. Also, if you know anything about mining you know the profit margins are razor-thin. A moonfoundry's accounting moonoffice would quickly run out of red ink to printing their quarterly reports.
If there is some demand for zero-gravity manufacturing it could be done on a space station for significantly less. A moonbase could never turn a profit, it would just be a needless drain on resources and further accelerate the problems on earth.
Also, a permanantly settled moonbase would not be likely, even if nominally self-sufficient, it's not easy to live there. It would be incredibly dangerous all the time there and the safety requirements and low gravity would make things miserable for the people there. Once the intial novelty of living there wears off, people would need to be rotated out at great expense or otherwise everyone would develop space madness, or moonmadness in this case. Not to mention the acculmative effect of radiation exposure.
Look, we are not running out of space to house people or running out of volcanic rock or poor-quality titianium ores. We are just running out of money. We can't even get normal factories and towns on earth to prosper right now, how would a moonbase do any better?