Skip to content

Commit

Permalink
CI Fix attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
tgpholly committed Jul 28, 2023
1 parent 842bcca commit 0c253b1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tooling/fileSmasher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ import { readdirSync, statSync, readFileSync, writeFileSync } from "fs";

const tsFileData:Array<string> = new Array<string>();

const toolinglessFolderPath = __dirname.replace("/tooling", "/");

function readDir(nam:string) {
const files = readdirSync(nam);
for (const file of files) {
if (nam == "./" && (file.startsWith(".") || file == "tooling" || file == "lib" || file == "node_modules" || file == "combined.ts")) {
if (nam == toolinglessFolderPath && (file.startsWith(".") || file == "tooling" || file == "lib" || file == "node_modules" || file == "combined.ts")) {
continue;
}

Expand All @@ -23,7 +25,7 @@ function readDir(nam:string) {
}
}

readDir("./");
readDir(toolinglessFolderPath);

const combinedFiles = tsFileData.join("\n");

Expand Down Expand Up @@ -66,5 +68,5 @@ for (const line of splitLines) {
// Investigation
const finalOutput = resultLines.join("\n");
console.log(finalOutput);
console.log(__dirname);
console.log(toolinglessFolderPath);
writeFileSync("./combined.ts", finalOutput);

0 comments on commit 0c253b1

Please sign in to comment.