Only format kc-gen file
This commit is contained in:
parent
af7a45d125
commit
d7455fd100
@ -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";
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user