fix(build): fix Window build locale (#9995)

build: fix Window build locale
This commit is contained in:
frank 2022-10-04 16:58:08 +08:00 committed by GitHub
parent b9173bb658
commit 532f33d4e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,7 +104,8 @@ async function buildFullEntry(minify: boolean) {
}
async function buildFullLocale(minify: boolean) {
const files = await glob(`${path.resolve(localeRoot, 'lang')}/*.ts`, {
const files = await glob(`**/*.ts`, {
cwd: path.resolve(localeRoot, 'lang'),
absolute: true,
})
return Promise.all(