Set the artifactId name in the build option

This commit is contained in:
garronej
2023-02-04 19:36:42 +01:00
parent 4e6a290693
commit 243fbd4dc9
2 changed files with 5 additions and 7 deletions

View File

@ -51,7 +51,7 @@ export namespace BuildOptions {
extraPages?: string[];
extraThemeProperties?: string[];
groupId: string;
artifactId?: string;
artifactId: string;
bundler: Bundler;
};
@ -141,7 +141,7 @@ export function readBuildOptions(params: {
return KEYCLOAKIFY_BUNDLER ?? bundler ?? "keycloakify";
})(),
"artifactId": process.env.KEYCLOAKIFY_ARTIFACT_ID ?? artifactId,
"artifactId": process.env.KEYCLOAKIFY_ARTIFACT_ID ?? artifactId ?? `${themeName}-keycloak-theme`,
"groupId": (() => {
const fallbackGroupId = `${themeName}.keycloak`;