chore: migrate fast-glob to tinyglobby (#23020)

* chore: migrate fast-glob to tinyglobby

* fix: ssr tests
This commit is contained in:
Noblet Ouways
2025-12-09 10:52:09 +01:00
committed by GitHub
parent a5d2064936
commit 899eeab499
16 changed files with 34 additions and 34 deletions

View File

@@ -1,6 +1,6 @@
import { readFileSync, writeFileSync } from 'node:fs'
import { basename, resolve } from 'node:path'
import glob from 'fast-glob'
import { globSync } from 'tinyglobby'
import consola from 'consola'
import { isArray, isObject, isString } from 'lodash-unified'
import { localeRoot, normalizePath } from '@element-plus/build-utils'
@@ -193,7 +193,7 @@ function main() {
const enContent = readFileSync(enFile, 'utf-8')
const enObject = parseLocaleFile(enContent)
const localeFiles = glob.sync(localePath)
const localeFiles = globSync(localePath)
let totalUpdated = 0
let totalAdded = 0