{
    "name": "spacebar-server",
    "version": "1.0.0",
    "description": "A Spacebar server written in Node.js",
    "scripts": {
        "prepare": "husky install",
        "postinstall": "patch-package",
        "start": "node --enable-source-maps dist/bundle/start.js",
        "start:api": "node --enable-source-maps dist/api/start.js",
        "start:cdn": "node --enable-source-maps dist/cdn/start.js",
        "start:gateway": "node --enable-source-maps dist/gateway/start.js",
        "start:webrtc": "node --enable-source-maps dist/webrtc/start.js",
        "build": "npm run build:src && npm run generate:schema && npm run generate:openapi",
        "build:src": "tsc -b -v",
        "build:tsgo": "npm run build:src:tsgo && npm run generate:schema && npm run generate:openapi",
        "build:src:tsgo": "rm -rf dist/* tsconfig.tsbuildinfo && tsgo -b -v",
        "watch": "tsc -w -b .",
        "test": "node -r dotenv/config -r module-alias/register --enable-source-maps scripts/test.js",
        "lint": "eslint .",
        "setup": "npm run build && npm run generate:schema",
        "sync:db": "npm run build && node -r dotenv/config -r module-alias/register --enable-source-maps scripts/syncronise.js",
        "generate:rights": "node  -r dotenv/config -r module-alias/register --enable-source-maps scripts/rights.js",
        "generate:schema": "node  -r dotenv/config -r module-alias/register --enable-source-maps scripts/schema.js",
        "generate:migration": "node -r dotenv/config -r module-alias/register --enable-source-maps node_modules/typeorm/cli.js migration:generate -d dist/util/util/Database.js",
        "generate:openapi": "node  -r dotenv/config -r module-alias/register --enable-source-maps scripts/openapi.js",
        "add:license": "node  -r dotenv/config -r module-alias/register --enable-source-maps scripts/license.js",
        "node:tests": "npm run build:src:tsgo && node -r dotenv/config -r module-alias/register --enable-source-maps --test --experimental-test-coverage dist/**/*.test.js",
        "apply:migrations": "node --enable-source-maps dist/apply-migrations.js"
    },
    "main": "dist/bundle/index.js",
    "types": "src/bundle/index.ts",
    "repository": {
        "type": "git",
        "url": "git+https://github.com/spacebarchat/server.git"
    },
    "author": "Spacebar",
    "license": "AGPL-3.0-only",
    "bugs": {
        "url": "https://github.com/spacebarchat/server/issues"
    },
    "imports": {
        "#*": "./dist/*/index.js"
    },
    "homepage": "https://spacebar.chat",
    "devDependencies": {
        "@eslint/eslintrc": "^3.3.5",
        "@eslint/js": "^9.14.0",
        "@spacebarchat/spacebar-webrtc-types": "^1.0.1",
        "@types/amqplib": "^0.10.8",
        "@types/bcrypt": "^6.0.0",
        "@types/body-parser": "^1.19.6",
        "@types/cookie-parser": "^1.4.10",
        "@types/express": "^5.0.6",
        "@types/i18next-node-fs-backend": "^2.1.5",
        "@types/json-bigint": "^1.0.4",
        "@types/jsonwebtoken": "^9.0.10",
        "@types/module-alias": "^2.0.4",
        "@types/morgan": "^1.9.10",
        "@types/multer": "^2.1.0",
        "@types/murmurhash-js": "^1.0.7",
        "@types/node": "^25.9.1",
        "@types/nodemailer": "^8.0.0",
        "@types/probe-image-size": "^7.2.5",
        "@types/sharp": "^0.31.1",
        "@types/ws": "^8.18.1",
        "@typescript-eslint/eslint-plugin": "^8.59.4",
        "@typescript-eslint/parser": "^8.59.4",
        "@typescript/native-preview": "^7.0.0-dev.20260119.1",
        "eslint": "^9.39.4",
        "eslint-plugin-node-import": "^1.2.0",
        "globals": "^17.6.0",
        "husky": "^9.1.7",
        "patch-package": "^8.0.1",
        "prettier": "^3.8.3",
        "pretty-quick": "^4.2.2",
        "ts-node": "^10.9.2",
        "typescript": "^6.0.3",
        "typescript-json-schema": "^0.67.4"
    },
    "dependencies": {
        "@spacebarchat/pion-webrtc": "^0.0.4",
        "@toondepauw/node-zstd": "^2.0.0",
        "ajv": "^8.20.0",
        "ajv-formats": "^3.0.1",
        "amqplib": "^2.0.1",
        "badge-maker": "^5.0.2",
        "bcrypt": "^6.0.0",
        "body-parser": "^2.2.2",
        "chalk": "^5.6.2",
        "cheerio": "^1.2.0",
        "cookie-parser": "^1.4.7",
        "discord-protos": "^1.2.202",
        "dotenv": "^17.4.2",
        "email-providers": "^2.22.0",
        "exif-be-gone": "^1.5.1",
        "express": "^5.2.1",
        "fast-zlib": "^2.0.1",
        "fido2-lib": "^3.5.9",
        "file-type": "^22.0.1",
        "form-data": "^4.0.5",
        "harmony-erlpack": "^0.0.1",
        "i18next": "^26.2.0",
        "i18next-fs-backend": "^2.6.6",
        "i18next-http-middleware": "^3.9.7",
        "image-size": "^2.0.2",
        "json-bigint": "^1.0.0",
        "jsonwebtoken": "^9.0.3",
        "module-alias": "^2.3.4",
        "morgan": "^1.10.1",
        "ms": "^2.1.3",
        "multer": "^2.1.1",
        "murmurhash-js": "^1.0.0",
        "node-2fa": "^2.0.3",
        "pg": "^8.21.0",
        "pg-query-stream": "^4.15.0",
        "picocolors": "^1.1.1",
        "probe-image-size": "^7.3.0",
        "prom-client": "^15.1.3",
        "reflect-metadata": "^0.2.2",
        "tslib": "^2.8.1",
        "typeorm": "^0.3.30",
        "why-is-node-running": "^3.2.2",
        "wretch": "^3.0.8",
        "ws": "^8.21.0"
    },
    "_moduleAliases": {
        "@spacebar/api": "dist/api",
        "@spacebar/cdn": "dist/cdn",
        "@spacebar/gateway": "dist/gateway",
        "@spacebar/util": "dist/util",
        "@spacebar/webrtc": "dist/webrtc",
        "@spacebar/schemas": "dist/schemas",
        "lambert-server": "dist/util/util/lambert-server"
    },
    "optionalDependencies": {
        "@sendgrid/mail": "^8.1.6",
        "jimp": "^1.6.1",
        "mailgun.js": "^13.1.0",
        "node-mailjet": "^6.0.11",
        "nodemailer": "^8.0.8"
    },
    "overrides": {
        "typeorm": {
            "better-sqlite3": "../_EXCLUDED_",
            "sqlite3": "../_EXCLUDED_",
            "mongodb": "../_EXCLUDED_"
        }
    }
}
