Reverse previous change, it breaks cra build
This commit is contained in:
parent
b53f4f997c
commit
e918788c3f
@ -45,19 +45,5 @@ import * as fs from "fs";
|
||||
|
||||
fs.writeFileSync(pathJoin(keycloakDirInPublicDir, ".gitignore"), Buffer.from("*", "utf8"));
|
||||
|
||||
const buildDirPath = pathJoin(projectDirPath, "build");
|
||||
|
||||
if (process.platform === "win32" && !fs.existsSync(buildDirPath)) {
|
||||
fs.mkdirSync(buildDirPath);
|
||||
}
|
||||
|
||||
try {
|
||||
fs.symlinkSync(buildDirPath, pathJoin(keycloakDirInPublicDir, "resources", "build"));
|
||||
} catch (error) {
|
||||
if (process.platform !== "win32") {
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
console.log(`${pathRelative(projectDirPath, keycloakDirInPublicDir)} directory created.`);
|
||||
})();
|
||||
|
Loading…
x
Reference in New Issue
Block a user