summary refs log tree commit diff
path: root/package.json
diff options
context:
space:
mode:
Diffstat (limited to 'package.json')
-rw-r--r--package.json91
1 files changed, 86 insertions, 5 deletions
diff --git a/package.json b/package.json
index 8488ff28..d8febb96 100644
--- a/package.json
+++ b/package.json
@@ -1,17 +1,98 @@
 {
-	"name": "fosscord-server",
+	"name": "@fosscord/server",
 	"version": "1.0.0",
-	"description": "A Fosscord server written in Node.js",
-	"workspaces": ["api", "cdn", "gateway"],
-	"scripts": {},
+	"description": "",
+	"main": "src/start.js",
+	"scripts": {
+		"setup": "npm install --omit optional && patch-package && npm run build",
+		"build": "node scripts/build_new.js",
+		"start": "npm run build && npm run start:bundle",
+		"start:bundle": "node --enable-source-maps dist/start.js",
+		"start:bundle:dbg": "node --enable-source-maps --inspect dist/start.js",
+		"start:bundle:vscode-dbg": "npm run build && node --enable-source-maps --inspect dist/start.js",
+		"depclean": "node scripts/depclean.js",
+		"depcheck": "node scripts/depcheck.js",
+		"tsnode": "npx ts-node --transpile-only -P tsnode.tsconfig.json src/start.ts",
+		"genschemas": "node scripts/generate_schemas.js",
+		"migrate": "cd ../util/ && npm i && node --require ts-node/register node_modules/typeorm/cli.js -f ../util/ormconfig.json migration:run",
+		"postinstall": "patch-package && npx --yes node-git-hooks"
+	},
 	"repository": {
 		"type": "git",
 		"url": "git+https://github.com/fosscord/fosscord-server.git"
 	},
+	"keywords": [],
 	"author": "Fosscord",
 	"license": "AGPL-3.0-only",
 	"bugs": {
 		"url": "https://github.com/fosscord/fosscord-server/issues"
 	},
-	"homepage": "https://fosscord.com"
+	"homepage": "https://fosscord.com",
+	"imports": {
+		"#*": "./dist/*/index.js"
+	},
+	"devDependencies": {
+		"@babel/core": "^7.18.9",
+		"@babel/preset-env": "^7.18.9",
+		"@babel/preset-typescript": "^7.15.0",
+		"@types/amqplib": "^0.8.1",
+		"@types/bcrypt": "^5.0.0",
+		"@types/bcryptjs": "^2.4.2",
+		"@types/body-parser": "^1.19.0",
+		"@types/express": "^4.17.12",
+		"@types/i18next-node-fs-backend": "^2.1.0",
+		"@types/jsonwebtoken": "^8.5.8",
+		"@types/morgan": "^1.9.3",
+		"@types/multer": "^1.4.7",
+		"@types/node": "^18.7.3",
+		"@types/node-fetch": "^2.6.2",
+		"@types/node-os-utils": "^1.3.0",
+		"@types/ws": "^8.5.3",
+		"jest": "^28.1.3",
+		"jest-expect-message": "^1.0.2",
+		"prettier-plugin-organize-imports": "^3.0.3",
+		"supertest": "^6.1.6",
+		"ts-node": "^10.2.1",
+		"ts-node-dev": "^2.0.0",
+		"typescript": "^4.2.3",
+		"typescript-json-schema": "^0.54.0"
+	},
+	"dependencies": {
+		"@aws-sdk/client-s3": "^3.137.0",
+		"@babel/preset-typescript": "^7.15.0",
+		"@sentry/node": "^7.7.0",
+		"@sentry/tracing": "^7.7.0",
+		"ajv": "^8.11.0",
+		"ajv-formats": "^2.1.1",
+		"amqplib": "^0.10.1",
+		"bcryptjs": "^2.4.3",
+		"body-parser": "^1.19.0",
+		"cheerio": "^1.0.0-rc.10",
+		"dotenv": "^16.0.1",
+		"exif-be-gone": "^1.3.1",
+		"express": "^4.17.1",
+		"file-type": "16.5",
+		"form-data": "^4.0.0",
+		"i18next": "^21.9.0",
+		"i18next-http-middleware": "^3.1.3",
+		"i18next-node-fs-backend": "^2.1.3",
+		"image-size": "^1.0.0",
+		"jest": "^28.1.3",
+		"jsonwebtoken": "^8.5.1",
+		"lambert-server": "^1.2.12",
+		"missing-native-js-functions": "^1.2.18",
+		"morgan": "^1.10.0",
+		"multer": "^1.4.5-lts.1",
+		"node-2fa": "^2.0.3",
+		"node-fetch": "^2.6.7",
+		"patch-package": "^6.4.7",
+		"picocolors": "^1.0.0",
+		"prettier": "^2.7.1",
+		"proxy-agent": "^5.0.0",
+		"reflect-metadata": "^0.1.13",
+		"typeorm": "^0.3.7",
+		"typescript": "^4.2.3",
+		"ws": "^8.8.1"
+	},
+	"packageManager": "yarn@3.2.2"
 }