Remove extraThemeNames option in favor of extending themeName to accept array

This commit is contained in:
garronej
2023-09-04 01:19:21 +02:00
parent 37dbd49589
commit cd8548fc32
6 changed files with 39 additions and 42 deletions

View File

@ -7,13 +7,12 @@ import { type ThemeType } from "../../constants";
import { bringInAccountV1, accountV1 } from "./bringInAccountV1";
export type BuildOptionsLike = {
themeName: string;
themeVariantNames: string[];
groupId: string;
artifactId: string;
themeVersion: string;
cacheDirPath: string;
keycloakifyBuildDirPath: string;
themeNames: string[];
};
{
@ -178,7 +177,7 @@ export async function generateJavaStackFiles(params: {
"types": ["account"]
}
]),
...[buildOptions.themeName, ...buildOptions.themeVariantNames]
...buildOptions.themeNames
.map(themeName => [
{
"name": themeName,