Remove React and React Dom deletion

This commit is contained in:
2026-03-23 07:50:55 +01:00
parent 146f51c590
commit 67ed8749e2
3 changed files with 16 additions and 46 deletions
+8 -23
View File
@@ -18,29 +18,14 @@ export default async function () {
force: true,
});
// try {
// const react_package_dir = path.join(
// dirNames.ROOT_DIR,
// "node_modules",
// "react",
// );
// const react_dom_package_dir = path.join(
// dirNames.ROOT_DIR,
// "node_modules",
// "react-dom",
// );
// if (
// dirNames.ROOT_DIR.startsWith(dirNames.BUNX_ROOT_DIR) &&
// !dirNames.ROOT_DIR.includes(`${dirNames.BUNX_ROOT_DIR}/test/`)
// ) {
// log.error(`Can't Run From this Directory => ${dirNames.ROOT_DIR}`);
// process.exit(1);
// } else {
// rmSync(react_package_dir, { recursive: true });
// rmSync(react_dom_package_dir, { recursive: true });
// }
// } catch (error) {}
if (
dirNames.ROOT_DIR.startsWith(dirNames.BUNX_ROOT_DIR) &&
!dirNames.ROOT_DIR.includes(`${dirNames.BUNX_ROOT_DIR}/test/`)
) {
log.error(`Can't Run From this Directory => ${dirNames.ROOT_DIR}`);
process.exit(1);
} else {
}
try {
const package_json = await Bun.file(