🐛 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
+21 -22
View File
@@ -1,23 +1,22 @@
{
"jsc": {
"parser": {
"syntax": "ecmascript",
"jsx": false,
"dynamicImport": false,
"privateMethod": false,
"functionBind": false,
"exportDefaultFrom": false,
"exportNamespaceFrom": false,
"decorators": false,
"decoratorsBeforeExport": false,
"topLevelAwait": false,
"importMeta": false
},
"transform": null,
"target": "es2021",
"loose": false,
"externalHelpers": false,
// Requires v1.2.50 or upper and requires target to be es2016 or upper.
"keepClassNames": false
}
}
"jsc": {
"parser": {
"syntax": "ecmascript",
"jsx": false,
"dynamicImport": false,
"privateMethod": false,
"functionBind": false,
"exportDefaultFrom": false,
"exportNamespaceFrom": false,
"decorators": false,
"decoratorsBeforeExport": false,
"topLevelAwait": false,
"importMeta": false
},
"transform": null,
"target": "es2021",
"loose": false,
"externalHelpers": false,
"keepClassNames": false
}
}
+32 -1216
View File
File diff suppressed because it is too large Load Diff
+2 -7
View File
@@ -5,13 +5,8 @@
"main": "src/start.js",
"scripts": {
"setup": "cd ../util && npm --production=false i && cd ../api && npm --production=false i && cd ../cdn && npm --production=false i && cd ../gateway && npm --production=false i && cd ../bundle/ && npm --production=false i && npm run build",
"build": "npm run build:util && npm run build:api && npm run build:cdn && npm run build:gateway && npm run build:bundle",
"postinstall": "ts-patch install -s",
"build:bundle": "swc src --out-dir dist",
"build:util": "cd ../util/ && npm run build",
"build:api": "cd ../api/ && npm run build",
"build:cdn": "cd ../cdn/ && npm run build",
"build:gateway": "cd ../gateway/ && npm run build",
"build": "node scripts/build.js",
"build:bundle": "npx swc src --out-dir dist",
"start": "npm run build && npm run start:bundle",
"start:bundle": "node dist/start.js",
"test": "echo \"Error: no test specified\" && exit 1"
-1
View File
@@ -1 +0,0 @@
{"version":"4.4.3"}