cli: add backstage.pluginId templating

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2025-06-05 12:10:32 +02:00
parent 1e641d89dc
commit e36e855997
8 changed files with 19 additions and 7 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/cli': patch
---
Added `backstage.pluginId` field in `package.json` to all default plugin package templates for the `new` command.
@@ -9,7 +9,8 @@
"types": "dist/index.d.ts"
},
"backstage": {
"role": "backend-plugin-module"
"role": "backend-plugin-module",
"pluginId": "{{pluginId}}"
},
"scripts": {
"start": "backstage-cli package start",
@@ -8,7 +8,8 @@
"types": "dist/index.d.ts"
},
"backstage": {
"role": "backend-plugin"
"role": "backend-plugin",
"pluginId": "{{pluginId}}"
},
"scripts": {
"start": "backstage-cli package start",
@@ -8,7 +8,8 @@
"types": "dist/index.d.ts"
},
"backstage": {
"role": "frontend-plugin"
"role": "frontend-plugin",
"pluginId": "{{pluginId}}"
},
"sideEffects": false,
"scripts": {
@@ -10,7 +10,8 @@
"types": "dist/index.d.ts"
},
"backstage": {
"role": "common-library"
"role": "common-library",
"pluginId": "{{pluginId}}"
},
"sideEffects": false,
"scripts": {
@@ -9,7 +9,8 @@
"types": "dist/index.d.ts"
},
"backstage": {
"role": "node-library"
"role": "node-library",
"pluginId": "{{pluginId}}"
},
"scripts": {
"build": "backstage-cli package build",
@@ -9,7 +9,8 @@
"types": "dist/index.d.ts"
},
"backstage": {
"role": "web-library"
"role": "web-library",
"pluginId": "{{pluginId}}"
},
"sideEffects": false,
"scripts": {
@@ -9,7 +9,8 @@
"types": "dist/index.d.ts"
},
"backstage": {
"role": "backend-plugin-module"
"role": "backend-plugin-module",
"pluginId": "scaffolder"
},
"scripts": {
"start": "backstage-cli package start",