From 36ef685813966aa1ae41404b8716bf289b8f5684 Mon Sep 17 00:00:00 2001 From: Holly Date: Tue, 15 Aug 2023 10:32:44 +0100 Subject: [PATCH] Update fileSmasher.ts --- tooling/fileSmasher.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tooling/fileSmasher.ts b/tooling/fileSmasher.ts index 827d319..fdc83f5 100644 --- a/tooling/fileSmasher.ts +++ b/tooling/fileSmasher.ts @@ -42,10 +42,10 @@ const splitLines = combinedFiles.split("\n"); const resultLines:Array = new Array(); // Insert allowed imports -resultLines.push(`import * as dyetty from "dyetty"; -import { createWriteStream, mkdirSync, existsSync, readFileSync, readFile, writeFile, writeFileSync, readdirSync } from "fs"; +resultLines.push(`import { createWriteStream, mkdirSync, existsSync, readFileSync, readFile, writeFile, writeFileSync, readdirSync } from "fs"; import { deflate, inflate } from "zlib"; import { createWriter, createReader, IReader, Endian } from "bufferstuff"; +import { Console } from "hsconsole"; import { Server, Socket } from "net";`); // Let's process the file to make it usable @@ -60,4 +60,4 @@ for (const line of splitLines) { resultLines.push(line.replace("export class", "class").replace("export interface", "interface").replace("export enum", "enum").replace("export type", "type")); } -writeFileSync("./combined.ts", resultLines.join("\n")); \ No newline at end of file +writeFileSync("./combined.ts", resultLines.join("\n"));