Add @internal/cli package for opaque CLI types

Move OpaqueCliPlugin to a new @internal/cli inline package, following the
same pattern as @internal/frontend. Both cli-plugin-api and cli import it
directly, and it gets bundled into their dists at build time.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Made-with: Cursor
This commit is contained in:
Patrik Oldsberg
2026-03-11 08:18:55 +01:00
parent d6caf7f13b
commit 2e5f189cfa
12 changed files with 107 additions and 146 deletions
+30
View File
@@ -0,0 +1,30 @@
{
"name": "@internal/cli",
"version": "0.0.1",
"backstage": {
"role": "node-library",
"inline": true
},
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/backstage/backstage",
"directory": "packages/cli-internal"
},
"license": "Apache-2.0",
"main": "src/index.ts",
"types": "src/index.ts",
"files": [
"dist"
],
"scripts": {
"lint": "backstage-cli package lint",
"test": "backstage-cli package test"
},
"dependencies": {
"@backstage/cli-plugin-api": "workspace:^"
},
"devDependencies": {
"@backstage/cli": "workspace:^"
}
}