Skip to content

Commit

Permalink
fix(cli): fix possible dependency conflict (#950)
Browse files Browse the repository at this point in the history
with the resolutions added by the
`export-dynamic-plugins` command.

Signed-off-by: David Festal <[email protected]>
  • Loading branch information
davidfestal authored Nov 16, 2023
1 parent a80aed9 commit 6c3052e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cli/src/commands/export-dynamic-plugin/backend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
};
},
});
Expand Down

0 comments on commit 6c3052e

Please sign in to comment.