diff --git a/src/config.ts b/src/config.ts index c202853..be66fbc 100644 --- a/src/config.ts +++ b/src/config.ts @@ -20,4 +20,5 @@ async function loadDynamoDBConfig() { } // Export the config (wrapped in a promise) -export const config = loadDynamoDBConfig() +// eslint-disable-next-line antfu/no-top-level-await +export const config = await loadDynamoDBConfig() diff --git a/src/dynamodb.ts b/src/dynamodb.ts index 7120955..0d511a6 100644 --- a/src/dynamodb.ts +++ b/src/dynamodb.ts @@ -84,6 +84,7 @@ export const dynamoDb = { if (response.statusCode !== 200) return reject(new Error(`Failed to download DynamoDB Local: ${response.statusCode}`)) + // @ts-expect-error: Ignoring type error due to external library incompatibility response.pipe(zlib.createUnzip()).pipe(tar.extract({ cwd: config.installPath })).on('finish', resolve).on('error', reject) }).on('error', reject) }) diff --git a/test/index.test.ts b/test/index.test.ts index 078eebc..5bbfbd1 100644 --- a/test/index.test.ts +++ b/test/index.test.ts @@ -1,4 +1,3 @@ -// eslint-disable-next-line unicorn/prefer-node-protocol import { describe, expect, it } from 'bun:test' describe('should', () => {