chore: update types

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2024-04-16 11:41:34 +02:00
parent a544108f93
commit 82ff03e16f
7 changed files with 26 additions and 13 deletions
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/cli': patch
---
Update reference if a package is moved to `@backstage-community` scope
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/backend-dynamic-feature-service': patch
---
Use `PackageRole` type explicitly
@@ -240,7 +240,9 @@ export interface NewBackendPluginInstaller {
export type ScannedPluginManifest = BackstagePackageJson &
Required<Pick<BackstagePackageJson, 'main'>> &
Required<Pick<BackstagePackageJson, 'backstage'>> & {
backstage: Required<BackstagePackageJson['backstage']>;
backstage: {
role: PackageRole;
};
};
// @public (undocumented)
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import { BackstagePackageJson } from '@backstage/cli-node';
import { BackstagePackageJson, PackageRole } from '@backstage/cli-node';
/**
* @public
@@ -30,5 +30,7 @@ export interface ScannedPluginPackage {
export type ScannedPluginManifest = BackstagePackageJson &
Required<Pick<BackstagePackageJson, 'main'>> &
Required<Pick<BackstagePackageJson, 'backstage'>> & {
backstage: Required<BackstagePackageJson['backstage']>;
backstage: {
role: PackageRole;
};
};
+1
View File
@@ -17,6 +17,7 @@ export interface BackstagePackageJson {
// (undocumented)
backstage?: {
role?: PackageRole;
moved?: string;
};
// (undocumented)
bundled?: boolean;
+12
View File
@@ -23,6 +23,7 @@ Commands:
migrate [command]
versions:bump [options]
versions:check [options]
versions:migrate [options]
clean
build-workspace [options] <workspace-dir> [packages...]
create-github-app <github-org>
@@ -600,6 +601,7 @@ Options:
--pattern <glob>
--release <version|next|main>
--skip-install
--skip-migrate
-h, --help
```
@@ -612,3 +614,13 @@ Options:
--fix
-h, --help
```
### `backstage-cli versions:migrate`
```
Usage: backstage-cli versions:migrate [options]
Options:
--pattern <glob>
-h, --help
```
+1 -5
View File
@@ -27,16 +27,12 @@ const DEP_TYPES = [
'optionalDependencies',
] as const;
// Package data as returned by `yarn info`. This is an uncomplete type fullfilling the required needs in the CLI
// Package data as returned by `yarn info`
export type YarnInfoInspectData = {
name: string;
'dist-tags': Record<string, string>;
versions: string[];
time: { [version: string]: string };
backstage?: {
role?: string;
moved?: string;
};
};
// Possible `yarn info` output