Skip to content

Commit 4faf920

Browse files
committed
Adding guard for servicePath
1 parent 86a2047 commit 4faf920

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class ServerlessDynamodbLocal {
1313
this.serverlessLog = serverless.cli.log.bind(serverless.cli);
1414
this.config = this.service.custom && this.service.custom.dynamodb || {};
1515
this.options = _.merge({
16-
localPath: path.join(serverless.config.servicePath, '.dynamodb')
16+
localPath: serverless.config && path.join(serverless.config.servicePath, '.dynamodb')
1717
},
1818
options
1919
);

0 commit comments

Comments
 (0)