From 6c3052e9ef2ad77797f6a75cb7f30059442c3764 Mon Sep 17 00:00:00 2001 From: David Festal Date: Thu, 16 Nov 2023 21:38:26 +0100 Subject: [PATCH] fix(cli): fix possible dependency conflict (#950) with the resolutions added by the `export-dynamic-plugins` command. Signed-off-by: David Festal --- packages/cli/src/commands/export-dynamic-plugin/backend.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/commands/export-dynamic-plugin/backend.ts b/packages/cli/src/commands/export-dynamic-plugin/backend.ts index 501b4d0da1..19516b6e62 100644 --- a/packages/cli/src/commands/export-dynamic-plugin/backend.ts +++ b/packages/cli/src/commands/export-dynamic-plugin/backend.ts @@ -309,15 +309,15 @@ export async function backend( const overrides = (pkgToCustomize as any).overrides || {}; (pkgToCustomize as any).overrides = { - ...overrides, '@aws-sdk/util-utf8-browser': { '@smithy/util-utf8': '^2.0.0', }, + ...overrides, }; const resolutions = (pkgToCustomize as any).resolutions || {}; (pkgToCustomize as any).resolutions = { + '@aws-sdk/util-utf8-browser': 'npm:@smithy/util-utf8@~2', ...resolutions, - '@aws-sdk/util-utf8-browser': 'npm:@smithy/util-utf8@^2.0.0', }; }, });