File tree 4 files changed +5
-7
lines changed
__tests__/templating/__snapshots__
4 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ type DeployProjectConfigBase = {
44
44
*/
45
45
overrideExistingService ?: boolean ;
46
46
/**
47
- * Version of Node.js to deploy with in Twilio Runtime. Can be "node10 " or "node12 "
47
+ * Version of Node.js to deploy with in Twilio Runtime. Can be "node12 " or "node14 "
48
48
*/
49
49
runtime ?: string ;
50
50
} ;
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ exports[`writeDefaultConfigFile default file should match snapshot 1`] = `
36
36
// \\"production\\": false /* Promote build to the production environment (no domain suffix). Overrides environment flag */,
37
37
// \\"properties\\": null /* Specify the output properties you want to see. Works best on single types */,
38
38
// \\"region\\": null /* Twilio API Region */,
39
- // \\"runtime\\": null /* The version of Node.js to deploy the build to. (node10 or node12 ) */,
39
+ // \\"runtime\\": null /* The version of Node.js to deploy the build to. (node12 or node14 ) */,
40
40
// \\"serviceName\\": null /* Overrides the name of the Serverless project. Default: the name field in your package.json */,
41
41
// \\"serviceSid\\": null /* SID of the Twilio Serverless Service to deploy to */,
42
42
// \\"sourceEnvironment\\": null /* SID or suffix of an existing environment you want to deploy from. */,
Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ export const ALL_FLAGS = {
229
229
runtime : {
230
230
type : 'string' ,
231
231
describe :
232
- 'The version of Node.js to deploy the build to. (node10 or node12 )' ,
232
+ 'The version of Node.js to deploy the build to. (node12 or node14 )' ,
233
233
} as Options ,
234
234
key : {
235
235
type : 'string' ,
@@ -251,9 +251,7 @@ export const ALL_FLAGS = {
251
251
export type AvailableFlags = typeof ALL_FLAGS ;
252
252
export type FlagNames = keyof AvailableFlags ;
253
253
254
- export function getRelevantFlags (
255
- flags : FlagNames [ ]
256
- ) : {
254
+ export function getRelevantFlags ( flags : FlagNames [ ] ) : {
257
255
[ flagName : string ] : Options ;
258
256
} {
259
257
return flags . reduce ( ( current : { [ flagName : string ] : Options } , flagName ) => {
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ ${serviceInfo}
98
98
{bold.cyan Root Directory}\t${ config . cwd }
99
99
{bold.cyan Dependencies}\t${ dependencyString }
100
100
{bold.cyan Env Variables}\t${ Object . keys ( config . env ) . join ( ', ' ) }
101
- {bold.cyan Runtime}\t\t${ config . runtime }
101
+ {bold.cyan Runtime}\t\t${ config . runtime || 'default' }
102
102
`
103
103
) ;
104
104
}
You can’t perform that action at this time.
0 commit comments