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