🐛 fix swc config

This commit is contained in:
Flam3rboy
2021-10-07 18:21:17 +02:00
parent a78baa048d
commit 8bb38139c2
16 changed files with 105 additions and 1317 deletions
+13 -8
View File
@@ -1,9 +1,14 @@
{
"jsc": {
"parser": {
"syntax": "typescript",
"decorators": true
},
"target": "es2021"
}
}
"jsc": {
"parser": {
"syntax": "typescript",
"decorators": true
},
"target": "es2021",
"baseUrl": ".",
"paths": {
"@fosscord/api": ["src/index"],
"@fosscord/api/*": ["src/*"]
}
}
}
-11
View File
@@ -1,11 +0,0 @@
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@util/*": ["./src/util/*"],
"@middlewares/*": ["./src/middlewares/*"],
"@schema/*": ["./src/schema/*"]
}
},
"include": ["src"]
}
+3 -3
View File
@@ -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",