Skip to content

Commit c2eb64f

Browse files
authored
Fix packaging import issues (#36)
1 parent 5492477 commit c2eb64f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ import {
33
DynamoDBClient, CreateTableCommand, BatchWriteItemCommand, CreateTableCommandInput,
44
} from '@aws-sdk/client-dynamodb';
55
import { DynamoDBDocumentClient, BatchWriteCommand } from '@aws-sdk/lib-dynamodb';
6-
import dynamodbLocal from 'aws-dynamodb-local';
6+
import * as dynamodbLocal from 'aws-dynamodb-local';
77
import type Serverless from 'serverless';
88
import type Plugin from 'serverless/classes/Plugin';
99
import path from 'node:path';
10-
import Aws, { CloudFormationResource } from 'serverless/plugins/aws/provider/awsProvider';
11-
import { StartOptions } from 'aws-dynamodb-local/dist/start';
12-
import { locateSeeds, writeSeeds } from './seeder';
10+
import type Aws from 'serverless/plugins/aws/provider/awsProvider';
11+
import type { CloudFormationResource } from 'serverless/plugins/aws/provider/awsProvider';
1312
import { Config, SeedConfig } from './config';
13+
import { locateSeeds, writeSeeds } from './seeder';
1414

1515
const PLUGIN_NAME = 'serverless-dynamodb';
1616

@@ -25,7 +25,7 @@ class ServerlessDynamoDBPlugin implements Plugin {
2525

2626
private readonly options:
2727
& Serverless.Options
28-
& Partial<StartOptions>
28+
& Parameters<typeof dynamodbLocal.start>[0]
2929
& { localPath: string, noStart?: string, seed?: boolean, migrate?: boolean }
3030
& Record<string, string | string[] | boolean | unknown>;
3131

0 commit comments

Comments
 (0)