Skip to content

Commit 83c419e

Browse files
authored
fix: overwrite clients in protocol clients (#1283)
1 parent 5f61141 commit 83c419e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/generate-clients/copy-to-clients.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@ const getOverwritablePredicate = packageName => pathName => {
2424
return (
2525
pathName
2626
.toLowerCase()
27-
.indexOf(
27+
.startsWith(
2828
packageName
2929
.toLowerCase()
3030
.replace("@aws-sdk/client-", "")
31+
.replace("@aws-sdk/aws-", "")
3132
.replace(/-/g, "")
32-
) >= 0 || overwritablePathnames.indexOf(pathName) >= 0
33+
) || overwritablePathnames.indexOf(pathName) >= 0
3334
);
3435
};
3536

0 commit comments

Comments
 (0)