File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -372,18 +372,25 @@ export default {
372
372
// Verbose logging
373
373
verbose: ${ config . verbose } ,
374
374
// Modify Lambda function list or support custom framework
375
- //getLambdas: async (foundLambdas) => {
376
- // you can customize the list of Lambdas here or create your own
377
- // return foundLambdas;
378
- //},
375
+ // getLambdas: async (foundLambdas) => {
376
+ // you can customize the list of Lambdas here or create your own
377
+ // return foundLambdas;
378
+ // },
379
379
} satisfies LldConfigTs;
380
380
` ;
381
381
382
- // remove lines that contains undefined or ""
382
+ // comment lines that contains undefined or ""
383
383
const configContentCleaned = configContent
384
384
. trim ( )
385
385
. split ( '\n' )
386
- . filter ( ( l ) => ! l . includes ( 'undefined' ) && ! l . includes ( '""' ) )
386
+ . map ( ( l ) =>
387
+ l . includes ( 'undefined' )
388
+ ? ` // ${ l
389
+ . replace ( '"undefined",' , '' )
390
+ . replace ( 'undefined,' , '' )
391
+ . trim ( ) } `
392
+ : l ,
393
+ )
387
394
. join ( '\n' ) ;
388
395
389
396
await fs . writeFile ( configFileName , configContentCleaned ) ;
You can’t perform that action at this time.
0 commit comments