File tree Expand file tree Collapse file tree 4 files changed +18
-8
lines changed
Expand file tree Collapse file tree 4 files changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -41,11 +41,15 @@ export async function getConfigFromWizard({
4141 type : "list" ,
4242 name : "framework" ,
4343 message : `Which framework are you using (detected: ${ currentFramework ?? "?" } )?` ,
44- choices : supportedFrameworks ,
44+ choices : [ ... supportedFrameworks , "other" ] ,
4545 default : currentConfig ?. framework ?? currentFramework ,
4646 } ,
4747 ] ) ;
4848
49+ if ( answers . framework === "other" ) {
50+ answers . framework = undefined ;
51+ }
52+
4953 const oldContext = currentConfig ?. context ?? [ ] ;
5054
5155 if ( answers . framework === "cdk" ) {
Original file line number Diff line number Diff line change @@ -151,15 +151,15 @@ async function deployLayer() {
151151 } ) ;
152152 await getLambdaClient ( ) . send ( deleteLayerVersionCommand ) ;
153153 } else {
154- Logger . verbose ( "Layer already deployed." ) ;
154+ Logger . log ( ` ${ layerDescription } already deployed.` ) ;
155155 return existingLayer . LayerVersionArn ;
156156 }
157157 }
158158
159159 // Read the ZIP file containing your layer code
160160 const layerContent = await fs . readFile ( layerZipPathFullPath ) ;
161161
162- Logger . verbose ( `Deploying ${ layerDescription } ` ) ;
162+ Logger . log ( `Deploying ${ layerDescription } ` ) ;
163163
164164 // Create the command for publishing a new layer version
165165 const publishLayerVersionCommand = new PublishLayerVersionCommand ( {
Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ import { LambdaConnection } from "./lambdaConnection.js";
2424async function run ( ) {
2525 const version = await getVersion ( ) ;
2626
27+ Logger . log ( `Welcome to Lambda Live Debugger version ${ version } ` ) ;
28+
2729 await Configuration . readConfig ( ) ;
2830
2931 Logger . setVerbose ( Configuration . config . verbose === true ) ;
@@ -49,7 +51,7 @@ async function run() {
4951 }
5052
5153 Logger . log (
52- `Welcome to Lambda Live Debugger version: ${ version } ! Starting the debugger
54+ `Starting the debugger
5355 ${
5456 Configuration . config . observable
5557 ? "in observable mode"
Original file line number Diff line number Diff line change @@ -226,10 +226,14 @@ async function build(input: {
226226 // remove all undefined values just to make it cleaner
227227 removeUndefinedProperties ( options ) ;
228228
229- Logger . verbose (
230- `[Function ${ input . functionId } ] Building ${ handlerCodePath } with options:` ,
231- JSON . stringify ( options , null , 2 )
232- ) ;
229+ if ( Configuration . config . verbose ) {
230+ Logger . verbose (
231+ `[Function ${ input . functionId } ] Building ${ handlerCodePath } with options:` ,
232+ JSON . stringify ( options , null , 2 )
233+ ) ;
234+ } else {
235+ Logger . log ( `[Function ${ input . functionId } ] Building ${ handlerCodePath } ` ) ;
236+ }
233237 ctx = await esbuild . context ( options ) ;
234238 }
235239
You can’t perform that action at this time.
0 commit comments