diff --git a/package.json b/package.json index 7ff3a61b..d33c61a0 100644 --- a/package.json +++ b/package.json @@ -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" } } diff --git a/packages/controller/tsconfig.json b/packages/controller/tsconfig.json index 58902a7a..b123e16d 100644 --- a/packages/controller/tsconfig.json +++ b/packages/controller/tsconfig.json @@ -1,5 +1,8 @@ { "extends": "../../tsconfig.node.json", + "references": [ + { "path": "../lib" }, + ], "include": ["controller.ts", "package.json", "src/**/*.ts"], "compilerOptions": { "outDir": "dist/controller", diff --git a/packages/ctl/tsconfig.json b/packages/ctl/tsconfig.json index eccb6bdc..396154b5 100644 --- a/packages/ctl/tsconfig.json +++ b/packages/ctl/tsconfig.json @@ -1,5 +1,8 @@ { "extends": "../../tsconfig.node.json", + "references": [ + { "path": "../lib" }, + ], "include": ["package.json", "ctl.ts", "src/**/*.ts"], "compilerOptions": { "outDir": "dist", diff --git a/packages/host/tsconfig.json b/packages/host/tsconfig.json index a7c73ecc..1ad44b08 100644 --- a/packages/host/tsconfig.json +++ b/packages/host/tsconfig.json @@ -1,5 +1,8 @@ { "extends": "../../tsconfig.node.json", + "references": [ + { "path": "../lib" }, + ], "include": ["host.ts", "package.json", "src/**/*.ts", "src/**/*.js"], "compilerOptions": { "outDir": "dist", diff --git a/plugins/global_chat/tsconfig.json b/plugins/global_chat/tsconfig.json index d930730d..087576d6 100644 --- a/plugins/global_chat/tsconfig.json +++ b/plugins/global_chat/tsconfig.json @@ -1,5 +1,8 @@ { "extends": "../../tsconfig.node.json", + "references": [ + { "path": "../../packages/lib" }, + ], "include": ["./**/*.ts"], "exclude": ["test/*", "./dist/*"], "compilerOptions": { diff --git a/plugins/inventory_sync/tsconfig.json b/plugins/inventory_sync/tsconfig.json index d930730d..087576d6 100644 --- a/plugins/inventory_sync/tsconfig.json +++ b/plugins/inventory_sync/tsconfig.json @@ -1,5 +1,8 @@ { "extends": "../../tsconfig.node.json", + "references": [ + { "path": "../../packages/lib" }, + ], "include": ["./**/*.ts"], "exclude": ["test/*", "./dist/*"], "compilerOptions": { diff --git a/plugins/player_auth/tsconfig.json b/plugins/player_auth/tsconfig.json index d930730d..087576d6 100644 --- a/plugins/player_auth/tsconfig.json +++ b/plugins/player_auth/tsconfig.json @@ -1,5 +1,8 @@ { "extends": "../../tsconfig.node.json", + "references": [ + { "path": "../../packages/lib" }, + ], "include": ["./**/*.ts"], "exclude": ["test/*", "./dist/*"], "compilerOptions": { diff --git a/plugins/research_sync/tsconfig.json b/plugins/research_sync/tsconfig.json index d930730d..087576d6 100644 --- a/plugins/research_sync/tsconfig.json +++ b/plugins/research_sync/tsconfig.json @@ -1,5 +1,8 @@ { "extends": "../../tsconfig.node.json", + "references": [ + { "path": "../../packages/lib" }, + ], "include": ["./**/*.ts"], "exclude": ["test/*", "./dist/*"], "compilerOptions": { diff --git a/plugins/statistics_exporter/tsconfig.json b/plugins/statistics_exporter/tsconfig.json index d930730d..087576d6 100644 --- a/plugins/statistics_exporter/tsconfig.json +++ b/plugins/statistics_exporter/tsconfig.json @@ -1,5 +1,8 @@ { "extends": "../../tsconfig.node.json", + "references": [ + { "path": "../../packages/lib" }, + ], "include": ["./**/*.ts"], "exclude": ["test/*", "./dist/*"], "compilerOptions": { diff --git a/plugins/subspace_storage/tsconfig.json b/plugins/subspace_storage/tsconfig.json index d930730d..087576d6 100644 --- a/plugins/subspace_storage/tsconfig.json +++ b/plugins/subspace_storage/tsconfig.json @@ -1,5 +1,8 @@ { "extends": "../../tsconfig.node.json", + "references": [ + { "path": "../../packages/lib" }, + ], "include": ["./**/*.ts"], "exclude": ["test/*", "./dist/*"], "compilerOptions": { diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 00000000..ac1e9fe0 --- /dev/null +++ b/tsconfig.json @@ -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" }, + ], +}