cli: use experimentalInstallationRecipe for new backstage-cli install command
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
This commit is contained in:
@@ -2,4 +2,4 @@
|
||||
'@backstage/plugin-graphiql': patch
|
||||
---
|
||||
|
||||
Add experimental `installationRecipe` to `package.json`.
|
||||
Add experimental `experimentalInstallationRecipe` to `package.json`.
|
||||
|
||||
@@ -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).
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -43,7 +43,7 @@ export type InstallationRecipe = {
|
||||
/** package.json data */
|
||||
export type PackageWithInstallRecipe = YarnInfoInspectData & {
|
||||
version: string;
|
||||
installationRecipe?: InstallationRecipe;
|
||||
experimentalInstallationRecipe?: InstallationRecipe;
|
||||
};
|
||||
|
||||
export interface Step {
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"installationRecipe": {
|
||||
"experimentalInstallationRecipe": {
|
||||
"type": "frontend-plugin",
|
||||
"steps": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user