Fix
This commit is contained in:
parent
e50f2bd692
commit
e78eafd1f1
@ -16,6 +16,7 @@ import {
|
|||||||
} from "./getUiModuleFileSourceCodeReadyToBeCopied";
|
} from "./getUiModuleFileSourceCodeReadyToBeCopied";
|
||||||
import * as crypto from "crypto";
|
import * as crypto from "crypto";
|
||||||
import { KEYCLOAK_THEME } from "../shared/constants";
|
import { KEYCLOAK_THEME } from "../shared/constants";
|
||||||
|
import { exclude } from "tsafe/exclude";
|
||||||
|
|
||||||
export type UiModuleMeta = {
|
export type UiModuleMeta = {
|
||||||
moduleName: string;
|
moduleName: string;
|
||||||
@ -113,11 +114,16 @@ export async function getUiModuleMetas(params: {
|
|||||||
moduleName.includes("keycloakify") && moduleName !== "keycloakify"
|
moduleName.includes("keycloakify") && moduleName !== "keycloakify"
|
||||||
});
|
});
|
||||||
|
|
||||||
return Promise.all(
|
return (
|
||||||
installedModulesWithKeycloakifyInTheName.filter(async ({ dirPath }) =>
|
await Promise.all(
|
||||||
existsAsync(pathJoin(dirPath, KEYCLOAK_THEME))
|
installedModulesWithKeycloakifyInTheName.map(async entry => {
|
||||||
|
if (!(await existsAsync(pathJoin(entry.dirPath, KEYCLOAK_THEME)))) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
return entry;
|
||||||
|
})
|
||||||
)
|
)
|
||||||
);
|
).filter(exclude(undefined));
|
||||||
})();
|
})();
|
||||||
|
|
||||||
const cacheContent = await (async () => {
|
const cacheContent = await (async () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user