Only format kc-gen file

This commit is contained in:
Joseph Garrone 2024-11-03 00:25:28 +01:00
parent af7a45d125
commit d7455fd100
2 changed files with 1 additions and 7 deletions

View File

@ -76,5 +76,3 @@ export const CUSTOM_HANDLER_ENV_NAMES = {
COMMAND_NAME: "KEYCLOAKIFY_COMMAND_NAME",
BUILD_CONTEXT: "KEYCLOAKIFY_BUILD_CONTEXT"
};
export const KC_GEN_FILE_PATH_RELATIVE_TO_THEME_SRC_DIR = "kc-gen.tsx";

View File

@ -1,5 +1,4 @@
import type { BuildContext } from "./shared/buildContext";
import { KC_GEN_FILE_PATH_RELATIVE_TO_THEME_SRC_DIR } from "./shared/constants";
import * as fs from "fs/promises";
import { join as pathJoin } from "path";
import { existsAsync } from "./tools/fs.existsAsync";
@ -19,10 +18,7 @@ export async function command(params: { buildContext: BuildContext }) {
return;
}
const filePath = pathJoin(
buildContext.themeSrcDirPath,
KC_GEN_FILE_PATH_RELATIVE_TO_THEME_SRC_DIR
);
const filePath = pathJoin(buildContext.themeSrcDirPath, "kc-gen.tsx");
const hasLoginTheme = buildContext.implementedThemeTypes.login.isImplemented;
const hasAccountTheme = buildContext.implementedThemeTypes.account.isImplemented;