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({
41
41
type : "list" ,
42
42
name : "framework" ,
43
43
message : `Which framework are you using (detected: ${ currentFramework ?? "?" } )?` ,
44
- choices : supportedFrameworks ,
44
+ choices : [ ... supportedFrameworks , "other" ] ,
45
45
default : currentConfig ?. framework ?? currentFramework ,
46
46
} ,
47
47
] ) ;
48
48
49
+ if ( answers . framework === "other" ) {
50
+ answers . framework = undefined ;
51
+ }
52
+
49
53
const oldContext = currentConfig ?. context ?? [ ] ;
50
54
51
55
if ( answers . framework === "cdk" ) {
Original file line number Diff line number Diff line change @@ -151,15 +151,15 @@ async function deployLayer() {
151
151
} ) ;
152
152
await getLambdaClient ( ) . send ( deleteLayerVersionCommand ) ;
153
153
} else {
154
- Logger . verbose ( "Layer already deployed." ) ;
154
+ Logger . log ( ` ${ layerDescription } already deployed.` ) ;
155
155
return existingLayer . LayerVersionArn ;
156
156
}
157
157
}
158
158
159
159
// Read the ZIP file containing your layer code
160
160
const layerContent = await fs . readFile ( layerZipPathFullPath ) ;
161
161
162
- Logger . verbose ( `Deploying ${ layerDescription } ` ) ;
162
+ Logger . log ( `Deploying ${ layerDescription } ` ) ;
163
163
164
164
// Create the command for publishing a new layer version
165
165
const publishLayerVersionCommand = new PublishLayerVersionCommand ( {
Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ import { LambdaConnection } from "./lambdaConnection.js";
24
24
async function run ( ) {
25
25
const version = await getVersion ( ) ;
26
26
27
+ Logger . log ( `Welcome to Lambda Live Debugger version ${ version } ` ) ;
28
+
27
29
await Configuration . readConfig ( ) ;
28
30
29
31
Logger . setVerbose ( Configuration . config . verbose === true ) ;
@@ -49,7 +51,7 @@ async function run() {
49
51
}
50
52
51
53
Logger . log (
52
- `Welcome to Lambda Live Debugger version: ${ version } ! Starting the debugger
54
+ `Starting the debugger
53
55
${
54
56
Configuration . config . observable
55
57
? "in observable mode"
Original file line number Diff line number Diff line change @@ -226,10 +226,14 @@ async function build(input: {
226
226
// remove all undefined values just to make it cleaner
227
227
removeUndefinedProperties ( options ) ;
228
228
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
+ }
233
237
ctx = await esbuild . context ( options ) ;
234
238
}
235
239
You can’t perform that action at this time.
0 commit comments