Roll Back compile version

This commit is contained in:
Benjamin Toby
2025-07-05 16:14:11 +01:00
parent 4f4eb44a98
commit 728183b827
251 changed files with 10169 additions and 7458 deletions
+13 -8
View File
@@ -1,14 +1,19 @@
import path from "path";
import fs from "fs";
const rootDir = path.resolve(__dirname, "../../../");
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const path_1 = __importDefault(require("path"));
const fs_1 = __importDefault(require("fs"));
const rootDir = path_1.default.resolve(__dirname, "../../../");
const ignorePattern = /\/\.git\/|\/\.next\/|\/\.dist\/|node_modules|\/\.local_dist\/|\/\.tmp\/|\/types\/|\.config\.js|\/public\//;
function transformJsToTs(dir) {
var _a;
const dirContent = fs.readdirSync(dir);
const dirContent = fs_1.default.readdirSync(dir);
for (let i = 0; i < dirContent.length; i++) {
const fileFolder = dirContent[i];
const fullFileFolderPath = path.join(dir, fileFolder);
const stat = fs.statSync(fullFileFolderPath);
const fullFileFolderPath = path_1.default.join(dir, fileFolder);
const stat = fs_1.default.statSync(fullFileFolderPath);
if (stat.isDirectory()) {
transformJsToTs(fullFileFolderPath);
continue;
@@ -26,8 +31,8 @@ function transformJsToTs(dir) {
console.log(newFilePath);
console.log("\n/////////////////////////////////////////");
console.log("/////////////////////////////////////////\n");
fs.copyFileSync(fullFileFolderPath, newFilePath);
fs.unlinkSync(fullFileFolderPath);
fs_1.default.copyFileSync(fullFileFolderPath, newFilePath);
fs_1.default.unlinkSync(fullFileFolderPath);
}
}
}