Update prettier configuration

This commit is contained in:
Joseph Garrone
2024-05-20 15:48:51 +02:00
parent 7a89888d11
commit 22e7ff1424
138 changed files with 3681 additions and 2007 deletions

View File

@ -24,26 +24,30 @@ export async function downloadKeycloakStaticResources(params: {
const tmpDirPath = pathJoin(
buildOptions.cacheDirPath,
`downloadKeycloakStaticResources_tmp_${crypto.createHash("sha256").update(`${themeType}-${keycloakVersion}`).digest("hex").slice(0, 8)}`
`downloadKeycloakStaticResources_tmp_${crypto
.createHash("sha256")
.update(`${themeType}-${keycloakVersion}`)
.digest("hex")
.slice(0, 8)}`
);
await downloadKeycloakDefaultTheme({
keycloakVersion,
"destDirPath": tmpDirPath,
destDirPath: tmpDirPath,
buildOptions
});
const resourcesPath = pathJoin(themeDirPath, themeType, "resources");
transformCodebase({
"srcDirPath": pathJoin(tmpDirPath, "keycloak", themeType, "resources"),
"destDirPath": resourcesPath
srcDirPath: pathJoin(tmpDirPath, "keycloak", themeType, "resources"),
destDirPath: resourcesPath
});
transformCodebase({
"srcDirPath": pathJoin(tmpDirPath, "keycloak", "common", "resources"),
"destDirPath": pathJoin(resourcesPath, resources_common)
srcDirPath: pathJoin(tmpDirPath, "keycloak", "common", "resources"),
destDirPath: pathJoin(resourcesPath, resources_common)
});
rmSync(tmpDirPath, { "recursive": true });
rmSync(tmpDirPath, { recursive: true });
}