@@ -243,12 +243,12 @@ getLambdas: async (foundLambdas, config) => {
243
243
lambda .codePath = lambda .codePath
244
244
.replace (" /dist/" , " /src/" )
245
245
.replace (" .js" , " .ts" );
246
- }
247
- }
246
+ }
247
+ }
248
248
},
249
249
```
250
250
251
- ** Modfiy esBuild configuration:**
251
+ ** Modify esBuild configuration:**
252
252
253
253
``` typescript
254
254
import { type EsBuildOptions , type LldConfigTs } from " lambda-live-debugger" ;
@@ -258,12 +258,11 @@ export default {
258
258
getLambdas : async (foundLambdas , config ) => {
259
259
if (foundLambdas ) {
260
260
for (const lambda of foundLambdas ) {
261
- lambda .esBuildOptions = {
262
- target: " node14" ,
263
- };
264
- }
265
- }
266
- },
261
+ lambda .esBuildOptions = {
262
+ target: " node14" ,
263
+ };
264
+ }
265
+ }
267
266
} satisfies LldConfigTs ;
268
267
` ` `
269
268
@@ -275,13 +274,13 @@ export default {
275
274
...
276
275
getLambdas : async (foundLambdas , config ) => {
277
276
return [
278
- {
279
- // function name as deployed on AWS
280
- functionName: " mystack-myfunction" ,
281
- codePath: " /src/myLambda.ts" ,
282
- },
283
- ];
284
- },
277
+ {
278
+ // function name as deployed on AWS
279
+ functionName: " mystack-myfunction" ,
280
+ codePath: " /src/myLambda.ts" ,
281
+ },
282
+ ];
283
+ },
285
284
} satisfies LldConfigTs ;
286
285
` ` `
287
286
@@ -291,19 +290,16 @@ export default {
291
290
import { CdkFramework , type LldConfigBase , type LldConfigTs } from " lambda-live-debugger" ;
292
291
293
292
class MyCdkFramework extends CdkFramework {
294
- override getCdkContext(
295
- cdkConfigPath : string ,
296
- config : LldConfigBase ,
297
- ) {
293
+ override getCdkContext(cdkConfigPath : string , config : LldConfigBase ) {
298
294
// your implementation
299
- }
295
+ }
300
296
}
301
297
302
298
export default {
303
299
...
304
- getLambdas : async (foundLambdas , config ) => {
300
+ getLambdas : async (foundLambdas , config ) => {
305
301
return new MyCdkFramework ().getLambdas (config );
306
- }
302
+ }
307
303
} satisfies LldConfigTs ;s
308
304
` ` `
309
305
@@ -328,9 +324,9 @@ Check the [GitHub issues](https://github.com/ServerlessLife/lambda-live-debugger
328
324
- [Marko (ServerlessLife)](https://www.serverlesslife.com/)
329
325
- ⭐ Your name here for big code contributions
330
326
331
- ## Contributors (alphabetical)
327
+ ## Contributors (alphabetical):
332
328
333
- - ⭐ Your name here for documentation contributions, minor code additions , or sample projects submitted with bug reports.
329
+ - ⭐ Your name here for notable code or documentation contributions , or sample projects submitted with bug reports.
334
330
335
331
## Declarment
336
332
0 commit comments