Add cli-plugin package role

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2026-02-27 23:25:27 +01:00
parent 6f01c33a0e
commit 94a885a2ef
10 changed files with 33 additions and 3 deletions
@@ -33,6 +33,7 @@ describe('typeDistProject', () => {
frontend: false,
backend: false,
cli: false,
'cli-plugin': false,
'common-library': false,
};
@@ -294,7 +294,12 @@ export function fixPluginId(pkg: FixablePackage) {
return;
}
if (role === 'backend' || role === 'frontend' || role === 'cli') {
if (
role === 'backend' ||
role === 'frontend' ||
role === 'cli' ||
role === 'cli-plugin'
) {
return;
}
@@ -376,7 +381,12 @@ export function fixPluginPackages(
return;
}
if (role === 'backend' || role === 'frontend' || role === 'cli') {
if (
role === 'backend' ||
role === 'frontend' ||
role === 'cli' ||
role === 'cli-plugin'
) {
return;
}
@@ -22,7 +22,7 @@ import type { CommandContext } from '../../../wiring/types';
const configArgPattern = /--config[=\s][^\s$]+/;
const noStartRoles: PackageRole[] = ['cli', 'common-library'];
const noStartRoles: PackageRole[] = ['cli', 'cli-plugin', 'common-library'];
export default async ({ args, info }: CommandContext) => {
cli({ help: info, booleanFlagNegation: true }, undefined, args);