🐛 fix types + swcrc configs
This commit is contained in:
parent
b5905c1bba
commit
c75c6f508d
@ -7,6 +7,11 @@
|
|||||||
"syntax": "typescript",
|
"syntax": "typescript",
|
||||||
"decorators": true
|
"decorators": true
|
||||||
},
|
},
|
||||||
"target": "es2021"
|
"target": "es2021",
|
||||||
|
"baseUrl": "./",
|
||||||
|
"paths": {
|
||||||
|
"@fosscord/api": ["src/index.ts"],
|
||||||
|
"@fosscord/api/*": ["src/*"]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
"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",
|
||||||
|
@ -4,23 +4,9 @@
|
|||||||
},
|
},
|
||||||
"jsc": {
|
"jsc": {
|
||||||
"parser": {
|
"parser": {
|
||||||
"syntax": "ecmascript",
|
"syntax": "typescript",
|
||||||
"jsx": false,
|
"decorators": true
|
||||||
"dynamicImport": false,
|
|
||||||
"privateMethod": false,
|
|
||||||
"functionBind": false,
|
|
||||||
"exportDefaultFrom": false,
|
|
||||||
"exportNamespaceFrom": false,
|
|
||||||
"decorators": false,
|
|
||||||
"decoratorsBeforeExport": false,
|
|
||||||
"topLevelAwait": false,
|
|
||||||
"importMeta": false
|
|
||||||
},
|
},
|
||||||
"transform": null,
|
"target": "es2021"
|
||||||
"target": "es2021",
|
|
||||||
"loose": false,
|
|
||||||
"externalHelpers": false,
|
|
||||||
// Requires v1.2.50 or upper and requires target to be es2016 or upper.
|
|
||||||
"keepClassNames": false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
1248
bundle/package-lock.json
generated
1248
bundle/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -7,6 +7,11 @@
|
|||||||
"syntax": "typescript",
|
"syntax": "typescript",
|
||||||
"decorators": true
|
"decorators": true
|
||||||
},
|
},
|
||||||
"target": "es2021"
|
"target": "es2021",
|
||||||
|
"baseUrl": ".",
|
||||||
|
"paths": {
|
||||||
|
"@fosscord/cdn/": ["src/index"],
|
||||||
|
"@fosscord/cdn/*": ["src/*"]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"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",
|
||||||
|
@ -7,6 +7,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,6 +3,7 @@
|
|||||||
"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",
|
||||||
|
@ -7,6 +7,12 @@
|
|||||||
"syntax": "typescript",
|
"syntax": "typescript",
|
||||||
"decorators": true
|
"decorators": true
|
||||||
},
|
},
|
||||||
"target": "es2021"
|
"target": "es2021",
|
||||||
|
"transform": {
|
||||||
|
"legacyDecorator": true,
|
||||||
|
"decoratorMetadata": true
|
||||||
|
},
|
||||||
|
"keepClassNames": true,
|
||||||
|
"loose": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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": "tsc -b ."
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user