diff --git a/esbuild.config.js b/esbuild.config.js index 74b28dc..8b03669 100644 --- a/esbuild.config.js +++ b/esbuild.config.js @@ -187,19 +187,19 @@ esbuild ], }) .then(() => { - const utilFilesAndDirectories = fs.existsSync(__dirname + "/utils") - ? fs.readdirSync(__dirname + "/utils") + const utilFilesAndDirectories = fs.existsSync(__dirname + "/src/extraScripts") + ? fs.readdirSync(__dirname + "/src/extraScripts") : []; const utilFiles = []; utilFilesAndDirectories.forEach((entry) => { - if (fs.statSync(__dirname + "/utils/" + entry).isFile()) + if (fs.statSync(__dirname + "/src/extraScripts/" + entry).isFile()) utilFiles.push(entry); }); // Transpile utilities using esbuild esbuild .build({ - entryPoints: utilFiles.map((filename) => "utils/" + filename), + entryPoints: utilFiles.map((filename) => "src/extraScripts/" + filename), bundle: true, outdir: "dist", platform: "node", diff --git a/package.json b/package.json index e04d63d..3f83045 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "build": "node esbuild.config.js", "cz": "cz", "dev": "npm run build && npm run start", - "lint": "eslint --no-error-on-unmatched-pattern src/**/*.js src/*.js tests/**/*.test.js tests/**/*.js tests/*.test.js tests/*.js utils/**/*.js utils/*.js", + "lint": "eslint --no-error-on-unmatched-pattern src/**/*.js src/*.js tests/**/*.test.js tests/**/*.js tests/*.test.js tests/*.js", "lint:fix": "npm run lint -- --fix", "prepare": "husky", "start": "node dist/svr.js", diff --git a/utils/loghighlight.js b/src/extraScripts/loghighlight.js similarity index 100% rename from utils/loghighlight.js rename to src/extraScripts/loghighlight.js diff --git a/utils/logviewer.js b/src/extraScripts/logviewer.js similarity index 100% rename from utils/logviewer.js rename to src/extraScripts/logviewer.js diff --git a/utils/svr_new.js b/src/extraScripts/svr_new.js similarity index 100% rename from utils/svr_new.js rename to src/extraScripts/svr_new.js diff --git a/utils/svrpasswd.js b/src/extraScripts/svrpasswd.js similarity index 100% rename from utils/svrpasswd.js rename to src/extraScripts/svrpasswd.js