repo-tools: avoid API reports for inline packages

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2024-08-31 18:04:00 +02:00
parent 2d3caafc0f
commit 1a8837e074
2 changed files with 8 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/repo-tools': patch
---
Avoid generating API reports for packages with `backstage.inline` set.
@@ -1232,6 +1232,9 @@ export async function categorizePackageDirs(packageDirs: string[]) {
if (!role) {
return; // Ignore packages without roles
}
if (pkgJson?.backstage?.inline) {
return; // Ignore inline packages
}
if (role === 'cli') {
cliPackageDirs.push(dir);
} else if (role !== 'frontend' && role !== 'backend') {