diff --git a/src/bin/keycloakify/generateResources/generateResources.ts b/src/bin/keycloakify/generateResources/generateResources.ts index d549967a..5fff1408 100644 --- a/src/bin/keycloakify/generateResources/generateResources.ts +++ b/src/bin/keycloakify/generateResources/generateResources.ts @@ -197,10 +197,13 @@ export async function generateResources(params: { buildContext, keycloakifyVersion: readThisNpmPackageVersion(), themeType, - fieldNames: readFieldNameUsage({ - themeSrcDirPath: buildContext.themeSrcDirPath, - themeType - }) + fieldNames: isSpa + ? [] + : (assert(themeType !== "admin"), + readFieldNameUsage({ + themeSrcDirPath: buildContext.themeSrcDirPath, + themeType + })) }); [ diff --git a/src/bin/keycloakify/generateResources/readFieldNameUsage.ts b/src/bin/keycloakify/generateResources/readFieldNameUsage.ts index 7f5b65ee..478c9348 100644 --- a/src/bin/keycloakify/generateResources/readFieldNameUsage.ts +++ b/src/bin/keycloakify/generateResources/readFieldNameUsage.ts @@ -7,7 +7,7 @@ import { getThisCodebaseRootDirPath } from "../../tools/getThisCodebaseRootDirPa /** Assumes the theme type exists */ export function readFieldNameUsage(params: { themeSrcDirPath: string; - themeType: ThemeType; + themeType: Exclude; }): string[] { const { themeSrcDirPath, themeType } = params;