fix(aidocs): correct smartconfig file handling and tighten TypeScript typings
This commit is contained in:
@@ -20,7 +20,7 @@ export class Readme {
|
||||
// First check legal info before introducing any cost
|
||||
const projectContext = new ProjectContext(this.projectDir);
|
||||
const smartconfigJson = JSON.parse(
|
||||
(await projectContext.gatherFiles()).smartfilesNpmextraJSON.contents.toString()
|
||||
(await projectContext.gatherFiles()).smartfilesSmartconfigJSON.contents.toString()
|
||||
);
|
||||
const legalInfo = smartconfigJson?.['tsdoc']?.legal;
|
||||
if (!legalInfo) {
|
||||
|
||||
Reference in New Issue
Block a user