repo-tools: make api extraction ignore packages without a role
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/repo-tools': patch
|
||||
---
|
||||
|
||||
Packages without a declared `backstage.role` are now ignored.
|
||||
@@ -1107,7 +1107,7 @@ export async function categorizePackageDirs(packageDirs: any[]) {
|
||||
});
|
||||
const role = pkgJson?.backstage?.role;
|
||||
if (!role) {
|
||||
throw new Error(`No backstage.role in ${dir}/package.json`);
|
||||
return; // Ignore packages without roles
|
||||
}
|
||||
if (role === 'cli') {
|
||||
cliPackageDirs.push(dir);
|
||||
|
||||
Reference in New Issue
Block a user