fix(aidocs): correct smartconfig file handling and tighten TypeScript typings
This commit is contained in:
@@ -226,7 +226,7 @@ Analyze these changes and output the JSON commit message object.
|
||||
const resultObject: INextCommitObject = JSON.parse(jsonString);
|
||||
|
||||
const previousChangelogPath = plugins.path.join(this.projectDir, 'changelog.md');
|
||||
let previousChangelog: plugins.smartfile.SmartFile;
|
||||
let previousChangelog: plugins.smartfile.SmartFile | undefined;
|
||||
if (await plugins.fsInstance.file(previousChangelogPath).exists()) {
|
||||
previousChangelog = await plugins.smartfileFactory.fromFilePath(previousChangelogPath);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user