File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,14 @@ import * as os from 'node:os'
2
2
import * as path from 'node:path'
3
3
import type { Config } from './src/types'
4
4
5
- export default {
5
+ const config : Config = {
6
6
port : 8000 ,
7
7
dbPath : '' ,
8
8
detached : false ,
9
9
additionalArgs : [ '-sharedDb' ] ,
10
10
javaOpts : '' ,
11
11
installPath : path . join ( os . tmpdir ( ) , 'dynamodb-local' ) ,
12
12
downloadUrl : 'https://d1ni2b6xgvw0s0.cloudfront.net/v2.x/dynamodb_local_latest.tar.gz' , // the official download URL
13
- } satisfies Config
13
+ }
14
+
15
+ export { config }
Original file line number Diff line number Diff line change @@ -93,9 +93,9 @@ export const dynamoDb = {
93
93
if ( response . statusCode !== 200 )
94
94
return reject ( new Error ( `Failed to download DynamoDB Local: ${ response . statusCode } ` ) )
95
95
96
- // @ts -expect-error: Ignoring type error due to external library incompatibility
97
96
response
98
97
. pipe ( zlib . createUnzip ( ) )
98
+ // @ts -expect-error: Ignoring type error due to external library incompatibility
99
99
. pipe ( tar . extract ( { cwd : config . installPath } ) )
100
100
. on ( 'finish' , resolve )
101
101
. on ( 'error' , reject )
You can’t perform that action at this time.
0 commit comments