From 37df85d84ade262dfd3b007d968b188d3b2c32a1 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Fri, 20 Sep 2024 06:35:17 +0200 Subject: [PATCH] fix: remove unused "tar" dependency from the extraction script --- esbuild.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esbuild.config.js b/esbuild.config.js index 8b03669..c2fa444 100644 --- a/esbuild.config.js +++ b/esbuild.config.js @@ -236,7 +236,7 @@ esbuild ); archive.append(compressedSVRJSFileStream, { name: "svr.compressed" }); archive.append( - 'const zlib = require("zlib");\nconst fs = require("fs");\nconst tar = require("tar");\nconsole.log("Deleting SVR.JS stub...");\nfs.unlinkSync("svr.js");\nconsole.log("Decompressing SVR.JS...");\nconst script = zlib.gunzipSync(fs.readFileSync("svr.compressed"));\nfs.unlinkSync("svr.compressed");\nfs.writeFileSync("svr.js",script);\nconsole.log("Restart SVR.JS to get server interface.");', + 'const zlib = require("zlib");\nconst fs = require("fs");\nconsole.log("Deleting SVR.JS stub...");\nfs.unlinkSync("svr.js");\nconsole.log("Decompressing SVR.JS...");\nconst script = zlib.gunzipSync(fs.readFileSync("svr.compressed"));\nfs.unlinkSync("svr.compressed");\nfs.writeFileSync("svr.js",script);\nconsole.log("Restart SVR.JS to get server interface.");', { name: "svr.js" }, ); archive.finalize();