Move more extensions to extensions
2 files changed, 2 insertions, 3 deletions
diff --git a/scripts/openapi.js b/scripts/openapi.js
index a6033cd6a..64c7babbf 100644
--- a/scripts/openapi.js
+++ b/scripts/openapi.js
@@ -18,7 +18,7 @@
process.env.LOG_ROUTES = "false";
-const { Stopwatch } = require("../dist/util/util/Stopwatch");
+const { Stopwatch } = require("../dist/extensions/Stopwatch");
const totalSw = Stopwatch.startNew();
require("module-alias/register");
@@ -26,7 +26,6 @@ const getRouteDescriptions = require("./util/getRouteDescriptions");
const path = require("path");
const fs = require("fs");
const { NO_AUTHORIZATION_ROUTES } = require("../dist/api/middlewares/Authentication");
-require("../dist/extensions");
const { bgRedBright, bgYellow, black, bgYellowBright, blue, white } = require("picocolors");
const openapiPath = path.join(__dirname, "..", "assets", "openapi.json");
diff --git a/scripts/schema.js b/scripts/schema.js
index f8733809b..54d9335d0 100644
--- a/scripts/schema.js
+++ b/scripts/schema.js
@@ -19,7 +19,7 @@
/*
Regenerates the `spacebarchat/server/assets/schemas.json` file, used for API/Gateway input validation.
*/
-const { Stopwatch } = require("../dist/util/util/Stopwatch");
+const { Stopwatch } = require("../dist/extensions/Stopwatch");
const totalSw = Stopwatch.startNew();
const conWarn = console.warn;
|