🎨 update bundle build

This commit is contained in:
Flam3rboy
2021-08-19 21:29:12 +02:00
parent 4a7b933ccf
commit a47de8585c
4 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
"description": "",
"main": "src/start.js",
"scripts": {
"postinstall": "cd ../util && npm i && cd ../api && npm i && cd ../cdn && npm i && cd ../gateway && npm i",
"preinstall": "cd ../util && npm i && cd ../api && npm i && cd ../cdn && npm i && cd ../gateway && npm i",
"build": "npm run build:api && npm run build:cdn && npm run build:gateway && npm run build:bundle",
"build:bundle": "npx tsc -b .",
"build:api": "cd ../api/ && npm run build",
+1
View File
@@ -10,6 +10,7 @@ if (process.arch == "ia32") {
}
export async function setupDatabase() {
if (process.env.MONGO_URL) return; // exit because the user provides his own mongodb
const dbPath = path.join(__dirname, "..", "..", "db");
const dbName = "fosscord";
const storageEngine = "wiredTiger";
BIN
View File
Binary file not shown.
+1
View File
@@ -1,3 +1,4 @@
// @ts-nocheck
import mongoose, { Schema, Document } from "mongoose";
import mongooseAutoPopulate from "mongoose-autopopulate";