🐛 fix types + swcrc configs

This commit is contained in:
Flam3rboy
2021-10-07 18:20:03 +02:00
parent b5905c1bba
commit c75c6f508d
11 changed files with 34 additions and 26 deletions
+6 -1
View File
@@ -7,6 +7,11 @@
"syntax": "typescript",
"decorators": true
},
"target": "es2021"
"target": "es2021",
"baseUrl": "./",
"paths": {
"@fosscord/api": ["src/index.ts"],
"@fosscord/api/*": ["src/*"]
}
}
}
+2 -2
View File
@@ -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",