Fix email theme path
This commit is contained in:
parent
ff84786b4e
commit
be57801e21
@ -15,7 +15,9 @@ const reactProjectDirPath = process.cwd();
|
|||||||
const themeSrcDirBasename = "keycloak-theme";
|
const themeSrcDirBasename = "keycloak-theme";
|
||||||
|
|
||||||
function getThemeSrcDirPath() {
|
function getThemeSrcDirPath() {
|
||||||
const themeSrcDirPath: string | undefined = crawl(pathJoin(reactProjectDirPath, "src"))
|
const srcDirPath = pathJoin(reactProjectDirPath, "src");
|
||||||
|
|
||||||
|
const themeSrcDirPath: string | undefined = crawl(srcDirPath)
|
||||||
.map(fileRelativePath => {
|
.map(fileRelativePath => {
|
||||||
const split = fileRelativePath.split(themeSrcDirBasename);
|
const split = fileRelativePath.split(themeSrcDirBasename);
|
||||||
|
|
||||||
@ -23,7 +25,7 @@ function getThemeSrcDirPath() {
|
|||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
return split[0] + themeSrcDirBasename;
|
return pathJoin(srcDirPath, split[0] + themeSrcDirBasename);
|
||||||
})
|
})
|
||||||
.filter(exclude(undefined))[0];
|
.filter(exclude(undefined))[0];
|
||||||
return { themeSrcDirPath };
|
return { themeSrcDirPath };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user