summary refs log tree commit diff
path: root/api/package.json
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-07 18:21:17 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-07 18:21:17 +0200
commit8bb38139c2ba19e1332facc5c04eb1a0d0b7f5f0 (patch)
treee150573b77e6734f2a9b4eeb42cbab2f8123580e /api/package.json
parent:zap: fast build script (diff)
downloadserver-8bb38139c2ba19e1332facc5c04eb1a0d0b7f5f0.tar.xz
:bug: fix swc config
Diffstat (limited to 'api/package.json')
-rw-r--r--api/package.json6
1 files changed, 3 insertions, 3 deletions
diff --git a/api/package.json b/api/package.json
index 37721728..eb833417 100644
--- a/api/package.json
+++ b/api/package.json
@@ -2,15 +2,15 @@
 	"name": "@fosscord/api",
 	"version": "1.0.0",
 	"description": "This repository contains the HTTP API Server",
-	"main": "dist/Server.js",
-	"types": "dist/Server.d.ts",
+	"main": "dist/index.js",
+	"types": "src/index.ts",
 	"scripts": {
 		"test:only": "jest --coverage --verbose --forceExit ./tests",
 		"test:routes": "jest --coverage --verbose --forceExit ./routes.test.ts",
 		"test": "npm run build && npm run test:only",
 		"test:watch": "jest --watch",
 		"start": "npm run build && node dist/start",
-		"build": "npx tsc -b .",
+		"build": "npx swc src --out-dir dist",
 		"build-docker": "tsc -p tsconfig-docker.json",
 		"dev": "tsnd --respawn src/start.ts",
 		"patch": "ts-patch install -s && npx patch-package",