diff --git a/scripts/api-extractor.ts b/scripts/api-extractor.ts index 21a307b65a..a7f36136cc 100644 --- a/scripts/api-extractor.ts +++ b/scripts/api-extractor.ts @@ -241,7 +241,6 @@ const ALLOW_WARNINGS = [ 'plugins/kafka', 'plugins/kafka-backend', 'plugins/kubernetes', - 'plugins/kubernetes-backend', 'plugins/kubernetes-common', 'plugins/lighthouse', 'plugins/newrelic', @@ -566,6 +565,11 @@ async function runApiExtraction({ `The API Report for ${packageDir} is not allowed to have warnings`, ); } + if (warningCountAfter === 0 && ALLOW_WARNINGS.includes(packageDir)) { + console.log( + `No need to allow warnings for ${packageDir}, it does not have any`, + ); + } if (warningCountAfter > warningCountBefore) { warnings.push( `The API Report for ${packageDir} introduces new warnings. ` +