diff --git a/api/.swcrc b/api/.swcrc
index 9a89b49d..794efbd7 100644
--- a/api/.swcrc
+++ b/api/.swcrc
@@ -7,6 +7,11 @@
"syntax": "typescript",
"decorators": true
},
- "target": "es2021"
+ "target": "es2021",
+ "baseUrl": "./",
+ "paths": {
+ "@fosscord/api": ["src/index.ts"],
+ "@fosscord/api/*": ["src/*"]
+ }
}
}
diff --git a/api/package.json b/api/package.json
index 2764320a..c4a29774 100644
--- a/api/package.json
+++ b/api/package.json
@@ -2,8 +2,8 @@
"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",
|