🎨 update bundle build
This commit is contained in:
parent
ec83db3d4e
commit
1a5399f1e3
@ -4,7 +4,7 @@
|
|||||||
"description": "",
|
"description": "",
|
||||||
"main": "src/start.js",
|
"main": "src/start.js",
|
||||||
"scripts": {
|
"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": "npm run build:api && npm run build:cdn && npm run build:gateway && npm run build:bundle",
|
||||||
"build:bundle": "npx tsc -b .",
|
"build:bundle": "npx tsc -b .",
|
||||||
"build:api": "cd ../api/ && npm run build",
|
"build:api": "cd ../api/ && npm run build",
|
||||||
|
@ -10,6 +10,7 @@ if (process.arch == "ia32") {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function setupDatabase() {
|
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 dbPath = path.join(__dirname, "..", "..", "db");
|
||||||
const dbName = "fosscord";
|
const dbName = "fosscord";
|
||||||
const storageEngine = "wiredTiger";
|
const storageEngine = "wiredTiger";
|
||||||
|
5
util/package-lock.json
generated
5
util/package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@fosscord/util",
|
"name": "@fosscord/util",
|
||||||
"version": "1.3.55",
|
"version": "1.0.0",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@fosscord/util",
|
"name": "@fosscord/util",
|
||||||
"version": "1.3.55",
|
"version": "1.0.0",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "GPLV3",
|
"license": "GPLV3",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@ -26,7 +26,6 @@
|
|||||||
"@types/amqplib": "^0.8.1",
|
"@types/amqplib": "^0.8.1",
|
||||||
"@types/jsonwebtoken": "^8.5.0",
|
"@types/jsonwebtoken": "^8.5.0",
|
||||||
"@types/mongodb": "^3.6.9",
|
"@types/mongodb": "^3.6.9",
|
||||||
"@types/mongoose": "^5.10.5",
|
|
||||||
"@types/mongoose-autopopulate": "^0.10.1",
|
"@types/mongoose-autopopulate": "^0.10.1",
|
||||||
"@types/mongoose-lean-virtuals": "^0.5.1",
|
"@types/mongoose-lean-virtuals": "^0.5.1",
|
||||||
"@types/node": "^14.17.9",
|
"@types/node": "^14.17.9",
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
// @ts-nocheck
|
||||||
import mongoose, { Schema, Document } from "mongoose";
|
import mongoose, { Schema, Document } from "mongoose";
|
||||||
import mongooseAutoPopulate from "mongoose-autopopulate";
|
import mongooseAutoPopulate from "mongoose-autopopulate";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user