mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-13 06:02:39 +01:00
🐛 fix swc config
This commit is contained in:
parent
a78baa048d
commit
8bb38139c2
4
.vscode/settings.json
vendored
4
.vscode/settings.json
vendored
@ -1,4 +0,0 @@
|
|||||||
{
|
|
||||||
"awooga.originalColorCustomizations": {},
|
|
||||||
"workbench.colorCustomizations": {}
|
|
||||||
}
|
|
@ -4,6 +4,11 @@
|
|||||||
"syntax": "typescript",
|
"syntax": "typescript",
|
||||||
"decorators": true
|
"decorators": true
|
||||||
},
|
},
|
||||||
"target": "es2021"
|
"target": "es2021",
|
||||||
|
"baseUrl": ".",
|
||||||
|
"paths": {
|
||||||
|
"@fosscord/api": ["src/index"],
|
||||||
|
"@fosscord/api/*": ["src/*"]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"compilerOptions": {
|
|
||||||
"baseUrl": ".",
|
|
||||||
"paths": {
|
|
||||||
"@util/*": ["./src/util/*"],
|
|
||||||
"@middlewares/*": ["./src/middlewares/*"],
|
|
||||||
"@schema/*": ["./src/schema/*"]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"include": ["src"]
|
|
||||||
}
|
|
@ -2,15 +2,15 @@
|
|||||||
"name": "@fosscord/api",
|
"name": "@fosscord/api",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "This repository contains the HTTP API Server",
|
"description": "This repository contains the HTTP API Server",
|
||||||
"main": "dist/Server.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/Server.d.ts",
|
"types": "src/index.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test:only": "jest --coverage --verbose --forceExit ./tests",
|
"test:only": "jest --coverage --verbose --forceExit ./tests",
|
||||||
"test:routes": "jest --coverage --verbose --forceExit ./routes.test.ts",
|
"test:routes": "jest --coverage --verbose --forceExit ./routes.test.ts",
|
||||||
"test": "npm run build && npm run test:only",
|
"test": "npm run build && npm run test:only",
|
||||||
"test:watch": "jest --watch",
|
"test:watch": "jest --watch",
|
||||||
"start": "npm run build && node dist/start",
|
"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",
|
"build-docker": "tsc -p tsconfig-docker.json",
|
||||||
"dev": "tsnd --respawn src/start.ts",
|
"dev": "tsnd --respawn src/start.ts",
|
||||||
"patch": "ts-patch install -s && npx patch-package",
|
"patch": "ts-patch install -s && npx patch-package",
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
"target": "es2021",
|
"target": "es2021",
|
||||||
"loose": false,
|
"loose": false,
|
||||||
"externalHelpers": false,
|
"externalHelpers": false,
|
||||||
// Requires v1.2.50 or upper and requires target to be es2016 or upper.
|
|
||||||
"keepClassNames": false
|
"keepClassNames": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
1248
bundle/package-lock.json
generated
1248
bundle/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -5,13 +5,8 @@
|
|||||||
"main": "src/start.js",
|
"main": "src/start.js",
|
||||||
"scripts": {
|
"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",
|
"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",
|
"build": "node scripts/build.js",
|
||||||
"postinstall": "ts-patch install -s",
|
"build:bundle": "npx swc src --out-dir dist",
|
||||||
"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",
|
|
||||||
"start": "npm run build && npm run start:bundle",
|
"start": "npm run build && npm run start:bundle",
|
||||||
"start:bundle": "node dist/start.js",
|
"start:bundle": "node dist/start.js",
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
|
@ -1 +0,0 @@
|
|||||||
{"version":"4.4.3"}
|
|
@ -4,6 +4,11 @@
|
|||||||
"syntax": "typescript",
|
"syntax": "typescript",
|
||||||
"decorators": true
|
"decorators": true
|
||||||
},
|
},
|
||||||
"target": "es2021"
|
"target": "es2021",
|
||||||
|
"baseUrl": ".",
|
||||||
|
"paths": {
|
||||||
|
"@fosscord/cdn/": ["src/index"],
|
||||||
|
"@fosscord/cdn/*": ["src/*"]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -3,11 +3,11 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "cdn for fosscord",
|
"description": "cdn for fosscord",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "src/index.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"postinstall": "ts-patch install -s",
|
"postinstall": "ts-patch install -s",
|
||||||
"test": "npm run build && jest --coverage ./tests",
|
"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"
|
"start": "npm run build && node dist/start.js"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1,23 +0,0 @@
|
|||||||
{
|
|
||||||
"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
|
|
||||||
}
|
|
||||||
}
|
|
@ -4,6 +4,11 @@
|
|||||||
"syntax": "typescript",
|
"syntax": "typescript",
|
||||||
"decorators": true
|
"decorators": true
|
||||||
},
|
},
|
||||||
"target": "es2021"
|
"target": "es2021",
|
||||||
|
"baseUrl": ".",
|
||||||
|
"paths": {
|
||||||
|
"@fosscord/gateway": ["src/index"],
|
||||||
|
"@fosscord/gateway/*": ["src/*"]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
2
gateway/package-lock.json
generated
2
gateway/package-lock.json
generated
@ -8077,6 +8077,7 @@
|
|||||||
"node_modules/fsevents": {
|
"node_modules/fsevents": {
|
||||||
"version": "2.3.2",
|
"version": "2.3.2",
|
||||||
"integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
|
"integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
|
||||||
|
"dev": true,
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
@ -16088,6 +16089,7 @@
|
|||||||
"fsevents": {
|
"fsevents": {
|
||||||
"version": "2.3.2",
|
"version": "2.3.2",
|
||||||
"integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
|
"integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
|
||||||
|
"dev": true,
|
||||||
"optional": true
|
"optional": true
|
||||||
},
|
},
|
||||||
"function-bind": {
|
"function-bind": {
|
||||||
|
@ -3,11 +3,12 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
"types": "src/index.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"postinstall": "npx ts-patch install -s",
|
"postinstall": "npx ts-patch install -s",
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
"start": "npm run build && node dist/start.js",
|
"start": "npm run build && node dist/start.js",
|
||||||
"build": "swc src --out-dir dist",
|
"build": "npx swc src --out-dir dist",
|
||||||
"dev": "tsnd --respawn src/start.ts"
|
"dev": "tsnd --respawn src/start.ts"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
|
@ -3,12 +3,12 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "Utility functions for the all server repositories",
|
"description": "Utility functions for the all server repositories",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "src/index.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "npm run build && node dist/",
|
"start": "npm run build && node dist/",
|
||||||
"test": "npm run build && jest",
|
"test": "npm run build && jest",
|
||||||
"postinstall": "npm run build",
|
"postinstall": "npm run build",
|
||||||
"build": "swc src --out-dir dist"
|
"build": "npx swc src --out-dir dist"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
Loading…
Reference in New Issue
Block a user