Update fileSmasher.ts
This commit is contained in:
parent
ad83454afa
commit
36ef685813
1 changed files with 3 additions and 3 deletions
|
@ -42,10 +42,10 @@ const splitLines = combinedFiles.split("\n");
|
||||||
const resultLines:Array<string> = new Array<string>();
|
const resultLines:Array<string> = new Array<string>();
|
||||||
|
|
||||||
// Insert allowed imports
|
// Insert allowed imports
|
||||||
resultLines.push(`import * as dyetty from "dyetty";
|
resultLines.push(`import { createWriteStream, mkdirSync, existsSync, readFileSync, readFile, writeFile, writeFileSync, readdirSync } from "fs";
|
||||||
import { createWriteStream, mkdirSync, existsSync, readFileSync, readFile, writeFile, writeFileSync, readdirSync } from "fs";
|
|
||||||
import { deflate, inflate } from "zlib";
|
import { deflate, inflate } from "zlib";
|
||||||
import { createWriter, createReader, IReader, Endian } from "bufferstuff";
|
import { createWriter, createReader, IReader, Endian } from "bufferstuff";
|
||||||
|
import { Console } from "hsconsole";
|
||||||
import { Server, Socket } from "net";`);
|
import { Server, Socket } from "net";`);
|
||||||
|
|
||||||
// Let's process the file to make it usable
|
// 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"));
|
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"));
|
writeFileSync("./combined.ts", resultLines.join("\n"));
|
||||||
|
|
Loading…
Reference in a new issue