cli: use experimentalInstallationRecipe for new backstage-cli install command

Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
This commit is contained in:
Himanshu Mishra
2021-10-07 16:32:00 +02:00
parent d9dde3129e
commit 632a6b2178
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -2,4 +2,4 @@
'@backstage/plugin-graphiql': patch
---
Add experimental `installationRecipe` to `package.json`.
Add experimental `experimentalInstallationRecipe` to `package.json`.
+1 -1
View File
@@ -4,4 +4,4 @@
Add an experimental `install <plugin>` command.
Given a `pluginId`, the command looks for NPM packages matching `@backstage/plugin-{pluginId}` or `backstage-plugin-{pluginId}` or `{pluginId}`. It looks for the `installationRecipe` in their `package.json` for the steps of installation. Detailed documentation and API Spec to follow (and to be decided as well).
Given a `pluginId`, the command looks for NPM packages matching `@backstage/plugin-{pluginId}` or `backstage-plugin-{pluginId}` or `{pluginId}`. It looks for the `experimentalInstallationRecipe` in their `package.json` for the steps of installation. Detailed documentation and API Spec to follow (and to be decided as well).
+1 -1
View File
@@ -67,7 +67,7 @@ class PluginInstaller {
step: stepDefinitionMap.dependencies.create({ dependencies }),
});
for (const step of pkg.installationRecipe?.steps ?? []) {
for (const step of pkg.experimentalInstallationRecipe?.steps ?? []) {
const { type } = step;
const definition = stepDefinitions.find(d => d.type === type);
+1 -1
View File
@@ -43,7 +43,7 @@ export type InstallationRecipe = {
/** package.json data */
export type PackageWithInstallRecipe = YarnInfoInspectData & {
version: string;
installationRecipe?: InstallationRecipe;
experimentalInstallationRecipe?: InstallationRecipe;
};
export interface Step {
+1 -1
View File
@@ -61,7 +61,7 @@
"files": [
"dist"
],
"installationRecipe": {
"experimentalInstallationRecipe": {
"type": "frontend-plugin",
"steps": [
{