cli: stop warning about duplicate plugin libraries

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-04-06 15:46:44 +02:00
parent 5b9559ca9e
commit 0383cd0228
2 changed files with 10 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/cli': patch
---
The `versions:*` commands no longer warns about duplicate plugin libraries, such as `@backstage/plugin-catalog-common`.
+5 -1
View File
@@ -36,7 +36,11 @@ const FORBID_DUPLICATES = [
// above.
const ALLOW_DUPLICATES = [
/^@backstage\/core-plugin-api$/,
/^@backstage\/plugin-catalog-react$/,
// Duplicates of libraries are OK
// TODO(Rugvip): Check this using package role instead
/^@backstage\/plugin-.*-react$/,
/^@backstage\/plugin-.*-node$/,
/^@backstage\/plugin-.*-common$/,
];
export const forbiddenDuplicatesFilter = (name: string) =>