Skip to content

Commit

Permalink
Another CI fix attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
tgpholly committed Jul 28, 2023
1 parent 530b468 commit 2d7815c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tooling/fileSmasher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for when you're just too lazy to
// do it properly.

import { readdirSync, statSync, readFileSync, writeFileSync } from "fs";
import { readdirSync, lstatSync, readFileSync, writeFileSync } from "fs";

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

Expand All @@ -19,7 +19,7 @@ function readDir(nam:string) {

// This is a very dumb way of checking for folders
// protip: don't do this.
if (statSync(`${nam}/${file}`).size == 0) {
if (statSync(`${nam}/${file}`).isDirectory()) {

Check failure on line 22 in tooling/fileSmasher.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

Cannot find name 'statSync'. Did you mean 'lstatSync'?
readDir(`${nam}/${file}`);
} else if (file.endsWith(".ts")) {
tsFileData.push(readFileSync((`${nam}/${file}`).replace("//", "/")).toString());
Expand Down

0 comments on commit 2d7815c

Please sign in to comment.