fix(core): update

This commit is contained in:
2024-04-20 23:14:13 +02:00
parent c5b07c2504
commit a5db530879
6 changed files with 288 additions and 265 deletions

View File

@ -30,7 +30,7 @@ export class ProjectContext {
);
const smartfilesMod = await plugins.smartfile.fs.fileTreeToObject(
this.projectDir,
'ts/**/*.ts'
'ts*/**/*.ts'
);
const smartfilesTest = await plugins.smartfile.fs.fileTreeToObject(
this.projectDir,
@ -47,6 +47,10 @@ export class ProjectContext {
}
public async convertFilesToContext(filesArg: plugins.smartfile.SmartFile[]) {
console.log(`Using the following files for the documentation:`)
filesArg.map(fileArg => {
console.log(` -> ${fileArg.relative}`);
})
return filesArg
.map((smartfile) => {
return `
@ -70,6 +74,7 @@ ${smartfile.contents.toString()}
...files.smartfilesMod,
...files.smartfilesTest,
]);
// console.log(context);
return context;
}