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

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@git.zone/tsdoc',
version: '1.1.26',
description: 'An advanced TypeScript documentation tool leveraging AI for enhanced insights and automated documentation generation, with capabilities for automated and enhanced documentation creation tailor-made for TypeScript projects.'
version: '1.1.27',
description: 'An advanced TypeScript documentation tool using AI to generate and enhance documentation for TypeScript projects.'
}

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;
}