Compared to conventional explosives, and especially compared to nukes, this is an ineffective and expensive way to flatten a target. A moon base of this type would only start to make sense if you assume that you want to completely flatten dozens of cities without resorting to nuclear weapons. It makes good sci-fi, but doesn't actually make sense.