fix(docs): contributors when only one language (#7093)

This commit is contained in:
三咲智子 2022-04-12 20:03:17 +08:00 committed by GitHub
parent 1c632ef709
commit 80676ed520
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,8 @@ export function MarkdownTransform(): Plugin {
code = transformVpScriptSetup(code, append)
const compPaths = await glob(`{${languages.join(',')}}/component`, {
const pattern = `{${[...languages, languages[0]].join(',')}}/component`
const compPaths = await glob(pattern, {
cwd: docRoot,
absolute: true,
onlyDirectories: true,