fix(aidocs, config): migrate aidocs configuration handling from npmextra to smartconfig

This commit is contained in:
2026-03-24 15:07:49 +00:00
parent fc85f28f69
commit a3a0537ddc
9 changed files with 53 additions and 26 deletions

View File

@@ -19,12 +19,12 @@ export class Readme {
// First check legal info before introducing any cost
const projectContext = new ProjectContext(this.projectDir);
const npmExtraJson = JSON.parse(
const smartconfigJson = JSON.parse(
(await projectContext.gatherFiles()).smartfilesNpmextraJSON.contents.toString()
);
const legalInfo = npmExtraJson?.['@git.zone/tsdoc']?.legal;
const legalInfo = smartconfigJson?.['@git.zone/tsdoc']?.legal;
if (!legalInfo) {
const error = new Error(`No legal information found in npmextra.json`);
const error = new Error(`No legal information found in smartconfig.json`);
console.log(error);
}