Add cli-plugin package role
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -269,6 +269,7 @@ function createConfigForRole(dir, role, extraConfig = {}) {
|
||||
});
|
||||
|
||||
case 'cli':
|
||||
case 'cli-plugin':
|
||||
case 'node-library':
|
||||
case 'backend':
|
||||
case 'backend-plugin':
|
||||
|
||||
@@ -38,6 +38,7 @@ const FRONTEND_ROLES = [
|
||||
const NODE_ROLES = [
|
||||
'backend',
|
||||
'cli',
|
||||
'cli-plugin',
|
||||
'node-library',
|
||||
'backend-plugin',
|
||||
'backend-plugin-module',
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user