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
-10
View File
@@ -5,16 +5,6 @@
```ts
import { CliModule } from '@backstage/cli-node';
// Warning: (ae-missing-release-tag) "configOption" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export const configOption: readonly [
'--config <path>',
'Config files to load instead of app-config.yaml',
(opt: string, opts: string[]) => string[],
string[],
];
// @public (undocumented)
const _default: CliModule;
export default _default;
-7
View File
@@ -16,13 +16,6 @@
import { createCliModule } from '@backstage/cli-node';
import packageJson from '../package.json';
export const configOption = [
'--config <path>',
'Config files to load instead of app-config.yaml',
(opt: string, opts: string[]) => (opts ? [...opts, opt] : [opt]),
Array<string>(),
] as const;
export default createCliModule({
packageJson,
init: async reg => {