This seems silly, but I’d forgotten it and took an embarrassingly long time to find again.
Globby is a wrapper around node-glob which adds support for arrays containing multiple glob patterns. Globby is widely used, but for some reason is invisible to search engines.
Thanks again to @sindresorhus