diff --git a/package-lock.json b/package-lock.json index 5c2ff2f2..e296e974 100644 Binary files a/package-lock.json and b/package-lock.json differ diff --git a/package.json b/package.json index 580f837f..a6bc580d 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,8 @@ "name": "@fosscord/cdn", "version": "1.0.0", "description": "cdn for discord clone", - "main": "index.js", + "main": "dist/index.js", + "types": "dist/index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "build": "tsc -b .", @@ -30,7 +31,7 @@ "file-type": "^16.5.0", "image-size": "^1.0.0", "lambert-db": "^1.2.3", - "lambert-server": "^1.2.4", + "lambert-server": "^1.2.5", "missing-native-js-functions": "^1.0.8", "multer": "^1.4.2", "node-fetch": "^2.6.1", diff --git a/src/start.ts b/src/start.ts index 72175f46..54228a5f 100644 --- a/src/start.ts +++ b/src/start.ts @@ -1,7 +1,8 @@ -import { CDNServer } from "./Server"; import dotenv from "dotenv"; dotenv.config(); +import { CDNServer } from "./Server"; + if (process.env.STORAGE_LOCATION) { if (!process.env.STORAGE_LOCATION.startsWith("/")) { process.env.STORAGE_LOCATION = __dirname + "/../" + process.env.STORAGE_LOCATION;