Remove extra exports from CLI module packages

CLI modules should only export the module itself as a default export.
Remove the named `buildPlugin` export from cli-module-build and the
unused `configOption` export from cli-module-config. Also remove the
API report warning skip for CLI module packages.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Made-with: Cursor
This commit is contained in:
Patrik Oldsberg
2026-03-15 21:51:07 +01:00
parent 7879215cca
commit 2069f64201
5 changed files with 7 additions and 29 deletions
+1 -3
View File
@@ -17,7 +17,7 @@
import { createCliModule } from '@backstage/cli-node';
import packageJson from '../package.json';
export const buildPlugin = createCliModule({
export default createCliModule({
packageJson,
init: async reg => {
reg.addCommand({
@@ -85,5 +85,3 @@ export const buildPlugin = createCliModule({
});
},
});
export default buildPlugin;