cli: update plugin template to use new core packages and include deps in diff

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2021-06-17 18:14:16 +02:00
parent fb5746cae5
commit db8aff3741
7 changed files with 13 additions and 11 deletions
-4
View File
@@ -172,10 +172,6 @@ class PackageJsonHandler {
if (this.variant === 'app' && key.startsWith('plugin-')) {
continue;
}
// Skip checking of the core packages, since we're migrating over
if (key.startsWith('@backstage/core')) {
continue;
}
await this.syncField(key, pkgDeps, targetDeps, fieldName);
}
+6 -2
View File
@@ -34,7 +34,9 @@ leaving any imports in place.
import { version as backendCommon } from '@backstage/backend-common/package.json';
import { version as cli } from '@backstage/cli/package.json';
import { version as config } from '@backstage/config/package.json';
import { version as core } from '@backstage/core/package.json';
import { version as coreAppApi } from '@backstage/core-app-api/package.json';
import { version as coreComponents } from '@backstage/core-components/package.json';
import { version as corePluginApi } from '@backstage/core-plugin-api/package.json';
import { version as devUtils } from '@backstage/dev-utils/package.json';
import { version as testUtils } from '@backstage/test-utils/package.json';
import { version as theme } from '@backstage/theme/package.json';
@@ -43,7 +45,9 @@ export const packageVersions = {
'@backstage/backend-common': backendCommon,
'@backstage/cli': cli,
'@backstage/config': config,
'@backstage/core': core,
'@backstage/core-app-api': coreAppApi,
'@backstage/core-components': coreComponents,
'@backstage/core-plugin-api': corePluginApi,
'@backstage/dev-utils': devUtils,
'@backstage/test-utils': testUtils,
'@backstage/theme': theme,