fix: correct sorting
This commit is contained in:
parent
5b0b5b4a70
commit
25c5826566
|
|
@ -36,9 +36,6 @@ async function crawlUI(rootPath: string) {
|
|||
withFileTypes: true,
|
||||
})
|
||||
|
||||
// Sort to ensure consistent order across platforms
|
||||
dir.sort()
|
||||
|
||||
const uiRegistry: Registry = []
|
||||
|
||||
for (const dirent of dir) {
|
||||
|
|
@ -62,9 +59,6 @@ async function crawlExample(rootPath: string) {
|
|||
withFileTypes: true,
|
||||
})
|
||||
|
||||
// Sort to ensure consistent order across platforms
|
||||
dir.sort()
|
||||
|
||||
const exampleRegistry: Registry = []
|
||||
|
||||
for (const dirent of dir) {
|
||||
|
|
@ -105,8 +99,6 @@ async function buildUIRegistry(componentPath: string, componentName: string) {
|
|||
const dir = await readdir(componentPath, {
|
||||
withFileTypes: true,
|
||||
})
|
||||
// Sort to ensure consistent order across platforms
|
||||
dir.sort()
|
||||
|
||||
const files: string[] = []
|
||||
const dependencies = new Set<string>()
|
||||
|
|
@ -119,6 +111,7 @@ async function buildUIRegistry(componentPath: string, componentName: string) {
|
|||
|
||||
const file_path = join('ui', componentName, dirent.name)
|
||||
files.push(file_path)
|
||||
files.sort()
|
||||
|
||||
// only grab deps from the vue files
|
||||
if (dirent.name === 'index.ts')
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user