🐛 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/cdn/": ["src/index"],
"@fosscord/cdn/*": ["src/*"]
}
}
}
+2 -2
View File
@@ -3,11 +3,11 @@
"version": "1.0.0",
"description": "cdn for fosscord",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"types": "src/index.ts",
"scripts": {
"postinstall": "ts-patch install -s",
"test": "npm run build && jest --coverage ./tests",
"build": "swc src --out-dir dist",
"build": "npx swc src --out-dir dist",
"start": "npm run build && node dist/start.js"
},
"repository": {
File diff suppressed because one or more lines are too long