docs: ensure files are always sorted when generating llms-full.txt (#12701)
This commit is contained in:
1 parent
e5ec907aad
commit
a8118fa3c3
2 files changed
+27380
-27378
No files matched your search
+27377
-27377
File diff suppressed because it is too large.
Load diff
@@ -51,7 +51,8 @@ const getContentFromDir = async ({
|
||||
generator,
|
||||
ext = "md",
|
||||
}: Options["scanDirs"][0]): Promise<string> => {
|
||||
const files = await new fdir()
|
||||
const files = (
|
||||
await new fdir()
|
||||
.withFullPaths()
|
||||
.filter((file) => {
|
||||
const baseName = path.basename(file)
|
||||
@@ -65,6 +66,7 @@ const getContentFromDir = async ({
|
||||
)
|
||||
.crawl(dir)
|
||||
.withPromise()
|
||||
).sort()
|
||||
|
||||
const content: string[] =
|
||||
generator?.name && generators[generator?.name]
|
||||
|
||||
Reference in new issue
Block a user