Reverse previous change, it breaks cra build

This commit is contained in:
Joseph Garrone 2023-11-04 16:46:51 +01:00
parent b53f4f997c
commit e918788c3f

View File

@ -45,19 +45,5 @@ import * as fs from "fs";
fs.writeFileSync(pathJoin(keycloakDirInPublicDir, ".gitignore"), Buffer.from("*", "utf8")); 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.`); console.log(`${pathRelative(projectDirPath, keycloakDirInPublicDir)} directory created.`);
})(); })();