summary refs log tree commit diff
path: root/api
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-07 18:22:15 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-07 18:22:15 +0200
commitc6bc68c4aa5a9c160c03ab95615411dea7301786 (patch)
tree6bde24b050dcddf5bd3a740bce9c86d3ff202bb1 /api
parent:bug: fix swc config (diff)
parent:bug: fix types + swcrc configs (diff)
downloadserver-c6bc68c4aa5a9c160c03ab95615411dea7301786.tar.xz
Merge branch 'compiler-change' of https://github.com/thearcanebrony/fosscord-server into pr/TheArcaneBrony/418-1
Diffstat (limited to 'api')
-rw-r--r--api/.swcrc7
1 files changed, 5 insertions, 2 deletions
diff --git a/api/.swcrc b/api/.swcrc
index 41d8f80f..794efbd7 100644
--- a/api/.swcrc
+++ b/api/.swcrc
@@ -1,13 +1,16 @@
 {
+	"module": {
+		"type": "commonjs"
+	},
 	"jsc": {
 		"parser": {
 			"syntax": "typescript",
 			"decorators": true
 		},
 		"target": "es2021",
-		"baseUrl": ".",
+		"baseUrl": "./",
 		"paths": {
-			"@fosscord/api": ["src/index"],
+			"@fosscord/api": ["src/index.ts"],
 			"@fosscord/api/*": ["src/*"]
 		}
 	}