summary refs log tree commit diff
path: root/bundle/tsconfig.json
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-10 11:02:25 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-10 11:02:25 +0200
commitdd51a3662b9bacd7c19f4be889c410003b3cdaf4 (patch)
tree1e487f7c8fb0f55c4c6ae7a57ad15b3da3cd1675 /bundle/tsconfig.json
parent:sparkles: random guest username generation added (diff)
downloadserver-dd51a3662b9bacd7c19f4be889c410003b3cdaf4.tar.xz
:sparkles: changed and fixed compiler
Diffstat (limited to 'bundle/tsconfig.json')
-rw-r--r--bundle/tsconfig.json30
1 files changed, 24 insertions, 6 deletions
diff --git a/bundle/tsconfig.json b/bundle/tsconfig.json
index 69725244..1b2949da 100644
--- a/bundle/tsconfig.json
+++ b/bundle/tsconfig.json
@@ -1,22 +1,28 @@
 {
-	"include": ["src/**/*.ts"],
+	"include": [
+		"../api/src/**/*.ts",
+		"../gateway/src/**/*.ts",
+		"../cdn/src/**/*.ts",
+		"../util/src/**/*.ts",
+		"src/**/*.ts"
+	],
 	"compilerOptions": {
 		/* Visit https://aka.ms/tsconfig.json to read more about this file */
 
 		/* Basic Options */
 		"incremental": true /* Enable incremental compilation */,
-		"target": "ESNext" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */,
+		"target": "ES6" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */,
 		"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */,
 		"lib": ["ES2021"] /* Specify library files to be included in the compilation. */,
 		"allowJs": true /* Allow javascript files to be compiled. */,
 		"checkJs": true /* Report errors in .js files. */,
 		// "jsx": "preserve",                     /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
-		"declaration": true /* Generates corresponding '.d.ts' file. */,
+		"declaration": false /* Generates corresponding '.d.ts' file. */,
 		"declarationMap": false /* Generates a sourcemap for each corresponding '.d.ts' file. */,
-		"sourceMap": true /* Generates corresponding '.map' file. */,
+		"sourceMap": false /* Generates corresponding '.map' file. */,
 		// "outFile": "./",                       /* Concatenate and emit output to single file. */
 		"outDir": "./dist/" /* Redirect output structure to the directory. */,
-		"rootDir": "./src/" /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */,
+		"rootDir": "../" /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */,
 		// "composite": true,                     /* Enable project compilation */
 		// "tsBuildInfoFile": "./",               /* Specify file to store incremental compilation information */
 		// "removeComments": true,                /* Do not emit comments to output. */
@@ -66,6 +72,18 @@
 		"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */,
 		"emitDecoratorMetadata": true,
 		"experimentalDecorators": true,
-		"baseUrl": "."
+		"resolveJsonModule": true,
+		"baseUrl": "..",
+		"paths": {
+			"@fosscord/api": ["api/src/index"],
+			"@fosscord/api/*": ["api/src/*"],
+			"@fosscord/gateway": ["gateway/src/index"],
+			"@fosscord/gateway/*": ["gateway/src/*"],
+			"@fosscord/cdn": ["cdn/src/index"],
+			"@fosscord/cdn/*": ["cdn/src/*"],
+			"@fosscord/util": ["util/src/index"],
+			"@fosscord/util/*": ["util/src/*"]
+		},
+		"plugins": [{ "transform": "@zerollup/ts-transform-paths" }]
 	}
 }