Set up references in TSConfig

Link the projects together properly so that builds don't use out of date
files and editor "go to definition" function give the right file.
This commit is contained in:
Hornwitser committed 2023-08-26 17:11:47 +02:00
1 parent c3d78a8cb8
commit 425daac6b6
11 files changed
+44 -1

No files matched your search

+2 -1
View File
@@ -36,6 +36,7 @@
"mocha": "^10.2.0",
"nyc": "^15.1.0",
"phin": "^3.7.0",
"typedoc": "^0.24.8"
"typedoc": "^0.24.8",
"typescript": "^5.1.6"
}
}
+3
View File
@@ -1,5 +1,8 @@
{
"extends": "../../tsconfig.node.json",
"references": [
{ "path": "../lib" },
],
"include": ["controller.ts", "package.json", "src/**/*.ts"],
"compilerOptions": {
"outDir": "dist/controller",
+3
View File
@@ -1,5 +1,8 @@
{
"extends": "../../tsconfig.node.json",
"references": [
{ "path": "../lib" },
],
"include": ["package.json", "ctl.ts", "src/**/*.ts"],
"compilerOptions": {
"outDir": "dist",
+3
View File
@@ -1,5 +1,8 @@
{
"extends": "../../tsconfig.node.json",
"references": [
{ "path": "../lib" },
],
"include": ["host.ts", "package.json", "src/**/*.ts", "src/**/*.js"],
"compilerOptions": {
"outDir": "dist",
+3
View File
@@ -1,5 +1,8 @@
{
"extends": "../../tsconfig.node.json",
"references": [
{ "path": "../../packages/lib" },
],
"include": ["./**/*.ts"],
"exclude": ["test/*", "./dist/*"],
"compilerOptions": {
+3
View File
@@ -1,5 +1,8 @@
{
"extends": "../../tsconfig.node.json",
"references": [
{ "path": "../../packages/lib" },
],
"include": ["./**/*.ts"],
"exclude": ["test/*", "./dist/*"],
"compilerOptions": {
+3
View File
@@ -1,5 +1,8 @@
{
"extends": "../../tsconfig.node.json",
"references": [
{ "path": "../../packages/lib" },
],
"include": ["./**/*.ts"],
"exclude": ["test/*", "./dist/*"],
"compilerOptions": {
+3
View File
@@ -1,5 +1,8 @@
{
"extends": "../../tsconfig.node.json",
"references": [
{ "path": "../../packages/lib" },
],
"include": ["./**/*.ts"],
"exclude": ["test/*", "./dist/*"],
"compilerOptions": {
@@ -1,5 +1,8 @@
{
"extends": "../../tsconfig.node.json",
"references": [
{ "path": "../../packages/lib" },
],
"include": ["./**/*.ts"],
"exclude": ["test/*", "./dist/*"],
"compilerOptions": {
+3
View File
@@ -1,5 +1,8 @@
{
"extends": "../../tsconfig.node.json",
"references": [
{ "path": "../../packages/lib" },
],
"include": ["./**/*.ts"],
"exclude": ["test/*", "./dist/*"],
"compilerOptions": {
+15
View File
@@ -0,0 +1,15 @@
{
"files": [],
"references": [
{ "path": "./packages/lib" },
{ "path": "./packages/controller" },
{ "path": "./packages/host" },
{ "path": "./packages/ctl" },
{ "path": "./plugins/global_chat" },
{ "path": "./plugins/inventory_sync" },
{ "path": "./plugins/player_auth" },
{ "path": "./plugins/research_sync" },
{ "path": "./plugins/statistics_exporter" },
{ "path": "./plugins/subspace_storage" },
],
}