Skip to content

Commit

Permalink
Mark @aws-sdk/client-rds-data as external and await assertPackages
Browse files Browse the repository at this point in the history
  • Loading branch information
kravetsone committed Aug 1, 2024
1 parent d65afd3 commit fb55772
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions drizzle-kit/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const driversPackages = [
'postgres',
'@vercel/postgres',
'@neondatabase/serverless',
'@aws-sdk/client-rds-data',
// mysql drivers
'mysql2',
'@planetscale/database',
Expand Down
2 changes: 1 addition & 1 deletion drizzle-kit/src/cli/connections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const preparePostgresDB = async (
> => {
if ('driver' in credentials) {
if (credentials.driver === 'aws-data-api') {
assertPackages('@aws-sdk/client-rds-data');
await assertPackages('@aws-sdk/client-rds-data');
const { RDSDataClient, ExecuteStatementCommand, TypeHint } = await import(
'@aws-sdk/client-rds-data'
);
Expand Down

0 comments on commit fb55772

Please sign in to comment.