`glob` is not a dependency of the repo, so the import resolved to a
phantom hoisted glob@7.2.3 pulled in by @electron/asar, archiver-utils
and rimraf. That version takes a single string pattern and a callback,
so the array of patterns threw `TypeError: invalid pattern` out of
minimatch, and an awaited call would have yielded undefined anyway.
Three fixed patterns of depth two do not need a glob library, and its
version would keep shifting with the lockfile. Enumerate the workspace
directories with readdir instead, matching scripts/build-utils.ts.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>