This commit is contained in:
Joseph Garrone 2024-10-26 22:06:37 +02:00
parent 0e93d4ed09
commit b0aa0feab5
2 changed files with 8 additions and 5 deletions

View File

@ -197,10 +197,13 @@ export async function generateResources(params: {
buildContext, buildContext,
keycloakifyVersion: readThisNpmPackageVersion(), keycloakifyVersion: readThisNpmPackageVersion(),
themeType, themeType,
fieldNames: readFieldNameUsage({ fieldNames: isSpa
themeSrcDirPath: buildContext.themeSrcDirPath, ? []
themeType : (assert(themeType !== "admin"),
}) readFieldNameUsage({
themeSrcDirPath: buildContext.themeSrcDirPath,
themeType
}))
}); });
[ [

View File

@ -7,7 +7,7 @@ import { getThisCodebaseRootDirPath } from "../../tools/getThisCodebaseRootDirPa
/** Assumes the theme type exists */ /** Assumes the theme type exists */
export function readFieldNameUsage(params: { export function readFieldNameUsage(params: {
themeSrcDirPath: string; themeSrcDirPath: string;
themeType: ThemeType; themeType: Exclude<ThemeType, "admin">;
}): string[] { }): string[] {
const { themeSrcDirPath, themeType } = params; const { themeSrcDirPath, themeType } = params;