Merge cli-plugin-api into cli-node

Move createCliPlugin and related types from the standalone
@backstage/cli-plugin-api package into @backstage/cli-node and
remove the now-empty package.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Made-with: Cursor
This commit is contained in:
Patrik Oldsberg
2026-03-13 07:39:15 +01:00
parent a90939e138
commit 7d055ef0c4
30 changed files with 65 additions and 135 deletions
-1
View File
@@ -50,7 +50,6 @@
"@backstage/catalog-model": "workspace:^",
"@backstage/cli-common": "workspace:^",
"@backstage/cli-node": "workspace:^",
"@backstage/cli-plugin-api": "workspace:^",
"@backstage/config": "workspace:^",
"@backstage/config-loader": "workspace:^",
"@backstage/errors": "workspace:^",
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import { createCliPlugin } from '@backstage/cli-plugin-api';
import { createCliPlugin } from '@backstage/cli-node';
import packageJson from '../../../package.json';
export const buildPlugin = createCliPlugin({
+1 -1
View File
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { createCliPlugin } from '@backstage/cli-plugin-api';
import { createCliPlugin } from '@backstage/cli-node';
import packageJson from '../../../package.json';
export const configOption = [
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { createCliPlugin } from '@backstage/cli-plugin-api';
import { createCliPlugin } from '@backstage/cli-node';
import packageJson from '../../../package.json';
export default createCliPlugin({
+1 -1
View File
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { createCliPlugin } from '@backstage/cli-plugin-api';
import { createCliPlugin } from '@backstage/cli-node';
import packageJson from '../../../package.json';
export default createCliPlugin({
+1 -1
View File
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { createCliPlugin } from '@backstage/cli-plugin-api';
import { createCliPlugin } from '@backstage/cli-node';
import packageJson from '../../../package.json';
export default createCliPlugin({
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { createCliPlugin } from '@backstage/cli-plugin-api';
import { createCliPlugin } from '@backstage/cli-node';
import packageJson from '../../../package.json';
export default createCliPlugin({
+1 -1
View File
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { createCliPlugin } from '@backstage/cli-plugin-api';
import { createCliPlugin } from '@backstage/cli-node';
import packageJson from '../../../package.json';
export default createCliPlugin({
+1 -1
View File
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { createCliPlugin } from '@backstage/cli-plugin-api';
import { createCliPlugin } from '@backstage/cli-node';
import { NotImplementedError } from '@backstage/errors';
import packageJson from '../../../package.json';
+1 -1
View File
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { createCliPlugin } from '@backstage/cli-plugin-api';
import { createCliPlugin } from '@backstage/cli-node';
import packageJson from '../../../package.json';
export default createCliPlugin({
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { createCliPlugin } from '@backstage/cli-plugin-api';
import { createCliPlugin } from '@backstage/cli-node';
import packageJson from '../../../package.json';
export default createCliPlugin({
+1 -1
View File
@@ -21,7 +21,7 @@ import {
OpaqueCommandLeafNode,
} from '@internal/cli';
import type { CommandNode } from '@internal/cli';
import type { CliPlugin } from '@backstage/cli-plugin-api';
import type { CliPlugin } from '@backstage/cli-node';
import { CommandRegistry } from './CommandRegistry';
import { Command } from 'commander';
import { version } from './version';
+1 -1
View File
@@ -14,4 +14,4 @@
* limitations under the License.
*/
export { createCliPlugin } from '@backstage/cli-plugin-api';
export { createCliPlugin } from '@backstage/cli-node';
+1 -1
View File
@@ -18,4 +18,4 @@ export type {
CommandContext,
BackstageCommand,
CliPlugin,
} from '@backstage/cli-plugin-api';
} from '@backstage/cli-node';