From 6beb22b99305fdd46819494b0c2baf88b41d3281 Mon Sep 17 00:00:00 2001 From: Aleksandr Kitov Date: Tue, 17 Oct 2023 18:50:39 +0200 Subject: [PATCH] fix(overrides): correct types for overrides --- .changeset/eight-bugs-lay.md | 5 +++++ packages/arui-scripts/src/configs/util/apply-overrides.ts | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 .changeset/eight-bugs-lay.md diff --git a/.changeset/eight-bugs-lay.md b/.changeset/eight-bugs-lay.md new file mode 100644 index 00000000..4f3b1e43 --- /dev/null +++ b/.changeset/eight-bugs-lay.md @@ -0,0 +1,5 @@ +--- +'arui-scripts': patch +--- + +Исправлены типы для оверрайдов, теперь prod овверайды так же принимают дополнительные аргументы diff --git a/packages/arui-scripts/src/configs/util/apply-overrides.ts b/packages/arui-scripts/src/configs/util/apply-overrides.ts index 511d949e..7b71c8b2 100644 --- a/packages/arui-scripts/src/configs/util/apply-overrides.ts +++ b/packages/arui-scripts/src/configs/util/apply-overrides.ts @@ -60,8 +60,11 @@ type OverridesAdditionalArgs = { webpackClient: ClientWebpackAdditionalArgs; webpackDev: ClientWebpackAdditionalArgs; webpackClientDev: ClientWebpackAdditionalArgs; + webpackProd: ClientWebpackAdditionalArgs; + webpackClientProd: ClientWebpackAdditionalArgs; webpackServer: ServerWebpackAdditionalArgs; webpackServerDev: ServerWebpackAdditionalArgs; + webpackServerProd: ServerWebpackAdditionalArgs; }; type OverrideFunction<