cli: make diff handler remove @backstage/core deps

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2021-06-17 19:54:03 +02:00
parent db8aff3741
commit 22fa107eb8
+4
View File
@@ -168,6 +168,10 @@ class PackageJsonHandler {
return;
}
// Hardcoded removal of these during migration
await this.syncField('@backstage/core', {}, targetDeps, fieldName);
await this.syncField('@backstage/core-api', {}, targetDeps, fieldName);
for (const key of Object.keys(pkgDeps)) {
if (this.variant === 'app' && key.startsWith('plugin-')) {
continue;