From 597d080d71577f9e3ff85e4fd0236afcbf1eff38 Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Wed, 7 Feb 2024 19:29:49 +0100 Subject: [PATCH] Add tsconfig.json that references both builds Add back unqualified tsconfig.json files to each package that references both the Node.js build and the browser build. This makes tsc --build compile both builds when the variant to do is not specified. --- packages/controller/tsconfig.json | 7 ++++++ packages/ctl/tsconfig.json | 6 +++++ packages/host/tsconfig.json | 6 +++++ packages/lib/tsconfig.json | 7 ++++++ packages/web_ui/tsconfig.json | 6 +++++ plugins/global_chat/tsconfig.json | 7 ++++++ plugins/inventory_sync/tsconfig.json | 7 ++++++ plugins/player_auth/tsconfig.json | 7 ++++++ plugins/research_sync/tsconfig.json | 7 ++++++ plugins/statistics_exporter/tsconfig.json | 7 ++++++ plugins/subspace_storage/tsconfig.json | 7 ++++++ tsconfig.json | 30 +++++++++-------------- 12 files changed, 85 insertions(+), 19 deletions(-) create mode 100644 packages/controller/tsconfig.json create mode 100644 packages/ctl/tsconfig.json create mode 100644 packages/host/tsconfig.json create mode 100644 packages/lib/tsconfig.json create mode 100644 packages/web_ui/tsconfig.json create mode 100644 plugins/global_chat/tsconfig.json create mode 100644 plugins/inventory_sync/tsconfig.json create mode 100644 plugins/player_auth/tsconfig.json create mode 100644 plugins/research_sync/tsconfig.json create mode 100644 plugins/statistics_exporter/tsconfig.json create mode 100644 plugins/subspace_storage/tsconfig.json diff --git a/packages/controller/tsconfig.json b/packages/controller/tsconfig.json new file mode 100644 index 00000000..e074e85f --- /dev/null +++ b/packages/controller/tsconfig.json @@ -0,0 +1,7 @@ +{ + "files": [], + "references": [ + { "path": "./tsconfig.node.json" }, + { "path": "./tsconfig.browser.json" }, + ], +} diff --git a/packages/ctl/tsconfig.json b/packages/ctl/tsconfig.json new file mode 100644 index 00000000..20b10c53 --- /dev/null +++ b/packages/ctl/tsconfig.json @@ -0,0 +1,6 @@ +{ + "files": [], + "references": [ + { "path": "./tsconfig.node.json" }, + ], +} diff --git a/packages/host/tsconfig.json b/packages/host/tsconfig.json new file mode 100644 index 00000000..20b10c53 --- /dev/null +++ b/packages/host/tsconfig.json @@ -0,0 +1,6 @@ +{ + "files": [], + "references": [ + { "path": "./tsconfig.node.json" }, + ], +} diff --git a/packages/lib/tsconfig.json b/packages/lib/tsconfig.json new file mode 100644 index 00000000..e074e85f --- /dev/null +++ b/packages/lib/tsconfig.json @@ -0,0 +1,7 @@ +{ + "files": [], + "references": [ + { "path": "./tsconfig.node.json" }, + { "path": "./tsconfig.browser.json" }, + ], +} diff --git a/packages/web_ui/tsconfig.json b/packages/web_ui/tsconfig.json new file mode 100644 index 00000000..d96583bf --- /dev/null +++ b/packages/web_ui/tsconfig.json @@ -0,0 +1,6 @@ +{ + "files": [], + "references": [ + { "path": "./tsconfig.browser.json" }, + ], +} diff --git a/plugins/global_chat/tsconfig.json b/plugins/global_chat/tsconfig.json new file mode 100644 index 00000000..e074e85f --- /dev/null +++ b/plugins/global_chat/tsconfig.json @@ -0,0 +1,7 @@ +{ + "files": [], + "references": [ + { "path": "./tsconfig.node.json" }, + { "path": "./tsconfig.browser.json" }, + ], +} diff --git a/plugins/inventory_sync/tsconfig.json b/plugins/inventory_sync/tsconfig.json new file mode 100644 index 00000000..e074e85f --- /dev/null +++ b/plugins/inventory_sync/tsconfig.json @@ -0,0 +1,7 @@ +{ + "files": [], + "references": [ + { "path": "./tsconfig.node.json" }, + { "path": "./tsconfig.browser.json" }, + ], +} diff --git a/plugins/player_auth/tsconfig.json b/plugins/player_auth/tsconfig.json new file mode 100644 index 00000000..e074e85f --- /dev/null +++ b/plugins/player_auth/tsconfig.json @@ -0,0 +1,7 @@ +{ + "files": [], + "references": [ + { "path": "./tsconfig.node.json" }, + { "path": "./tsconfig.browser.json" }, + ], +} diff --git a/plugins/research_sync/tsconfig.json b/plugins/research_sync/tsconfig.json new file mode 100644 index 00000000..e074e85f --- /dev/null +++ b/plugins/research_sync/tsconfig.json @@ -0,0 +1,7 @@ +{ + "files": [], + "references": [ + { "path": "./tsconfig.node.json" }, + { "path": "./tsconfig.browser.json" }, + ], +} diff --git a/plugins/statistics_exporter/tsconfig.json b/plugins/statistics_exporter/tsconfig.json new file mode 100644 index 00000000..e074e85f --- /dev/null +++ b/plugins/statistics_exporter/tsconfig.json @@ -0,0 +1,7 @@ +{ + "files": [], + "references": [ + { "path": "./tsconfig.node.json" }, + { "path": "./tsconfig.browser.json" }, + ], +} diff --git a/plugins/subspace_storage/tsconfig.json b/plugins/subspace_storage/tsconfig.json new file mode 100644 index 00000000..e074e85f --- /dev/null +++ b/plugins/subspace_storage/tsconfig.json @@ -0,0 +1,7 @@ +{ + "files": [], + "references": [ + { "path": "./tsconfig.node.json" }, + { "path": "./tsconfig.browser.json" }, + ], +} diff --git a/tsconfig.json b/tsconfig.json index e108f361..df2b7168 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,24 +1,16 @@ { "files": [], "references": [ - { "path": "./packages/lib/tsconfig.node.json" }, - { "path": "./packages/controller/tsconfig.node.json" }, - { "path": "./packages/host/tsconfig.node.json" }, - { "path": "./packages/ctl/tsconfig.node.json" }, - { "path": "./plugins/global_chat/tsconfig.node.json" }, - { "path": "./plugins/inventory_sync/tsconfig.node.json" }, - { "path": "./plugins/player_auth/tsconfig.node.json" }, - { "path": "./plugins/research_sync/tsconfig.node.json" }, - { "path": "./plugins/statistics_exporter/tsconfig.node.json" }, - { "path": "./plugins/subspace_storage/tsconfig.node.json" }, - { "path": "./packages/lib/tsconfig.browser.json" }, - { "path": "./packages/controller/tsconfig.browser.json" }, - { "path": "./packages/web_ui/tsconfig.browser.json" }, - { "path": "./plugins/global_chat/tsconfig.browser.json" }, - { "path": "./plugins/inventory_sync/tsconfig.browser.json" }, - { "path": "./plugins/player_auth/tsconfig.browser.json" }, - { "path": "./plugins/research_sync/tsconfig.browser.json" }, - { "path": "./plugins/statistics_exporter/tsconfig.browser.json" }, - { "path": "./plugins/subspace_storage/tsconfig.browser.json" }, + { "path": "./packages/lib/" }, + { "path": "./packages/controller/" }, + { "path": "./packages/host/" }, + { "path": "./packages/ctl/" }, + { "path": "./packages/web_ui/" }, + { "path": "./plugins/global_chat/" }, + { "path": "./plugins/inventory_sync/" }, + { "path": "./plugins/player_auth/" }, + { "path": "./plugins/research_sync/" }, + { "path": "./plugins/statistics_exporter/" }, + { "path": "./plugins/subspace_storage/" }, ], }