diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-10-07 18:20:03 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-10-07 18:20:03 +0200 |
commit | c75c6f508dbbfdd9c93f0ec404d11beeb57b21ae (patch) | |
tree | f7da476d23f131fd89522142cd48ed5b26ce798f /api | |
parent | :bug: fix swcrc config: rewrite import -> require (diff) | |
download | server-c75c6f508dbbfdd9c93f0ec404d11beeb57b21ae.tar.xz |
:bug: fix types + swcrc configs
Diffstat (limited to 'api')
-rw-r--r-- | api/.swcrc | 7 | ||||
-rw-r--r-- | api/package.json | 4 |
2 files changed, 8 insertions, 3 deletions
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", |