Could these have been Tom Swift, Jr. books by Victor Appleton II? For example, Tom Swift in the Race to the Moon had a black dust jacket.

The books were also available without dust jackets. Those versions had a yellow spine and back cover. Those with dust jackets were blue underneath the dust jacket. The Hardy Boys and Nancy Drew books looked similar in format, as they were from the same publisher.
That was the twelfth of thirty-three books. They could easily have had another book set in a moonbase. It seems to me that they established one after this book, perhaps in Tom Swift and His Space Solartron, the thirteenth book. That seems to have also been available in a black cover like

The hardbacks that I have are larger than a mass market paperback but smaller than other hardbacks. I store them with the paperbacks rather than on the larger shelves that hold other hardbacks.
They were written from 1954 to 1971, so they could have been in a school library in 1982.
The third series started release in 1981. The paperback that I read had a black cover. I don't know about the library versions. The third series were all space books, but I don't know that any were set on the moon.
Victor Appleton and Victor Appleton II were house names owned by the publisher, not the authors who wrote them.