From f1edbd78cbb5cf7cb6c3f5453a74dc3cfc1aba3a Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Wed, 29 Nov 2023 18:02:27 +0100 Subject: [PATCH] Move dist/web_build inside dest/web By default webpack-dev-middleware will refuse to delete files outside of its working directory. This becomes dist/web in the configuration currently set up, which means that a rebuild triggered on the watched files will fail when declaration files are output to to dist/web_build. Fix by moving dist/web_build to dist/web/build. --- packages/controller/.npmignore | 2 +- packages/controller/tsconfig.web.json | 2 +- plugins/global_chat/.npmignore | 2 +- plugins/global_chat/tsconfig.web.json | 2 +- plugins/inventory_sync/.npmignore | 2 +- plugins/inventory_sync/tsconfig.web.json | 2 +- plugins/player_auth/.npmignore | 2 +- plugins/player_auth/tsconfig.web.json | 2 +- plugins/research_sync/.npmignore | 2 +- plugins/research_sync/tsconfig.web.json | 2 +- plugins/statistics_exporter/.npmignore | 2 +- plugins/statistics_exporter/tsconfig.web.json | 2 +- plugins/subspace_storage/.npmignore | 2 +- plugins/subspace_storage/tsconfig.web.json | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/packages/controller/.npmignore b/packages/controller/.npmignore index e31e7410..ebd99907 100644 --- a/packages/controller/.npmignore +++ b/packages/controller/.npmignore @@ -1,2 +1,2 @@ webpack.config.js -dist/web_build +dist/web/build diff --git a/packages/controller/tsconfig.web.json b/packages/controller/tsconfig.web.json index 4f57c7a7..01d0c42f 100644 --- a/packages/controller/tsconfig.web.json +++ b/packages/controller/tsconfig.web.json @@ -7,6 +7,6 @@ "include": [ "web/**/*.tsx", "web/**/*.ts", "package.json" ], "compilerOptions": { "rootDir": "..", - "outDir": "dist/web_build", + "outDir": "dist/web/build", } } diff --git a/plugins/global_chat/.npmignore b/plugins/global_chat/.npmignore index e31e7410..ebd99907 100644 --- a/plugins/global_chat/.npmignore +++ b/plugins/global_chat/.npmignore @@ -1,2 +1,2 @@ webpack.config.js -dist/web_build +dist/web/build diff --git a/plugins/global_chat/tsconfig.web.json b/plugins/global_chat/tsconfig.web.json index b3a7914b..64a8f2a5 100644 --- a/plugins/global_chat/tsconfig.web.json +++ b/plugins/global_chat/tsconfig.web.json @@ -6,6 +6,6 @@ ], "include": [ "web/**/*.tsx", "web/**/*.ts", "messages.ts", "package.json" ], "compilerOptions": { - "outDir": "dist/web_build", + "outDir": "dist/web/build", } } diff --git a/plugins/inventory_sync/.npmignore b/plugins/inventory_sync/.npmignore index e31e7410..ebd99907 100644 --- a/plugins/inventory_sync/.npmignore +++ b/plugins/inventory_sync/.npmignore @@ -1,2 +1,2 @@ webpack.config.js -dist/web_build +dist/web/build diff --git a/plugins/inventory_sync/tsconfig.web.json b/plugins/inventory_sync/tsconfig.web.json index 8c702166..6b077616 100644 --- a/plugins/inventory_sync/tsconfig.web.json +++ b/plugins/inventory_sync/tsconfig.web.json @@ -6,6 +6,6 @@ ], "include": [ "web/**/*.tsx", "web/**/*.ts", "messages.ts", "instance.ts", "package.json" ], "compilerOptions": { - "outDir": "dist/web_build", + "outDir": "dist/web/build", } } diff --git a/plugins/player_auth/.npmignore b/plugins/player_auth/.npmignore index e31e7410..ebd99907 100644 --- a/plugins/player_auth/.npmignore +++ b/plugins/player_auth/.npmignore @@ -1,2 +1,2 @@ webpack.config.js -dist/web_build +dist/web/build diff --git a/plugins/player_auth/tsconfig.web.json b/plugins/player_auth/tsconfig.web.json index b3a7914b..64a8f2a5 100644 --- a/plugins/player_auth/tsconfig.web.json +++ b/plugins/player_auth/tsconfig.web.json @@ -6,6 +6,6 @@ ], "include": [ "web/**/*.tsx", "web/**/*.ts", "messages.ts", "package.json" ], "compilerOptions": { - "outDir": "dist/web_build", + "outDir": "dist/web/build", } } diff --git a/plugins/research_sync/.npmignore b/plugins/research_sync/.npmignore index e31e7410..ebd99907 100644 --- a/plugins/research_sync/.npmignore +++ b/plugins/research_sync/.npmignore @@ -1,2 +1,2 @@ webpack.config.js -dist/web_build +dist/web/build diff --git a/plugins/research_sync/tsconfig.web.json b/plugins/research_sync/tsconfig.web.json index b3a7914b..64a8f2a5 100644 --- a/plugins/research_sync/tsconfig.web.json +++ b/plugins/research_sync/tsconfig.web.json @@ -6,6 +6,6 @@ ], "include": [ "web/**/*.tsx", "web/**/*.ts", "messages.ts", "package.json" ], "compilerOptions": { - "outDir": "dist/web_build", + "outDir": "dist/web/build", } } diff --git a/plugins/statistics_exporter/.npmignore b/plugins/statistics_exporter/.npmignore index e31e7410..ebd99907 100644 --- a/plugins/statistics_exporter/.npmignore +++ b/plugins/statistics_exporter/.npmignore @@ -1,2 +1,2 @@ webpack.config.js -dist/web_build +dist/web/build diff --git a/plugins/statistics_exporter/tsconfig.web.json b/plugins/statistics_exporter/tsconfig.web.json index be3879f6..f70c4e0d 100644 --- a/plugins/statistics_exporter/tsconfig.web.json +++ b/plugins/statistics_exporter/tsconfig.web.json @@ -6,6 +6,6 @@ ], "include": [ "web/**/*.tsx", "web/**/*.ts", "package.json" ], "compilerOptions": { - "outDir": "dist/web_build", + "outDir": "dist/web/build", } } diff --git a/plugins/subspace_storage/.npmignore b/plugins/subspace_storage/.npmignore index e31e7410..ebd99907 100644 --- a/plugins/subspace_storage/.npmignore +++ b/plugins/subspace_storage/.npmignore @@ -1,2 +1,2 @@ webpack.config.js -dist/web_build +dist/web/build diff --git a/plugins/subspace_storage/tsconfig.web.json b/plugins/subspace_storage/tsconfig.web.json index b3a7914b..64a8f2a5 100644 --- a/plugins/subspace_storage/tsconfig.web.json +++ b/plugins/subspace_storage/tsconfig.web.json @@ -6,6 +6,6 @@ ], "include": [ "web/**/*.tsx", "web/**/*.ts", "messages.ts", "package.json" ], "compilerOptions": { - "outDir": "dist/web_build", + "outDir": "dist/web/build", } }