File tree 8 files changed +8
-8
lines changed
create-twilio-function/src/create-twilio-function
__tests__/templating/__snapshots__
8 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ module.exports = {
6
6
'@twilio/runtime-handler'
7
7
] . replace ( / [ \^ ~ ] / , '' ) ,
8
8
twilioRun : pkgJson . dependencies [ 'twilio-run' ] ,
9
- node : '16 ' ,
9
+ node : '18 ' ,
10
10
typescript : '^3.8' ,
11
11
serverlessRuntimeTypes : '^1.1' ,
12
12
copyfiles : '^2.2.0' ,
Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ FLAGS
157
157
--password=<value> A specific API secret or auth token for deployment. Uses fields from .env otherwise
158
158
--production Please prefer the "activate" command! Deploys to the production environment (no
159
159
domain suffix). Overrides the value passed via the environment flag.
160
- --runtime=<value> The version of Node.js to deploy the build to. (node16 )
160
+ --runtime=<value> The version of Node.js to deploy the build to. (node18 )
161
161
--service-sid=<value> SID of the Twilio Serverless Service to deploy to
162
162
--silent Suppress output and logs. This is a shorthand for "-l none -o none".
163
163
--to=<value> [Alias for "environment"]
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ async function run() {
10
10
const result = await client . deployProject ( {
11
11
...config ,
12
12
overrideExistingService : true ,
13
- runtime : 'node16 ' ,
13
+ runtime : 'node18 ' ,
14
14
env : {
15
15
HELLO : 'ahoy' ,
16
16
WORLD : 'welt' ,
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 "node16 "
47
+ * Version of Node.js to deploy with in Twilio Runtime. Can be "node18 "
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\\ " : \\" node16 \\ " /* The version of Node.js to deploy the build to. (node16 ) */ ,
39
+ \\" runtime\\ " : \\" node18 \\ " /* The version of Node.js to deploy the build to. (node18 ) */ ,
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 1
1
import { stripIndent } from 'common-tags' ;
2
2
import { logger } from '../utils/logger' ;
3
3
4
- const SERVERLESS_NODE_JS_VERSION = [ '14 .' , '16 .' ] ;
4
+ const SERVERLESS_NODE_JS_VERSION = [ '16 .' , '18 .' ] ;
5
5
6
6
export function printVersionWarning (
7
7
nodeVersion : string ,
Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ export const ALL_FLAGS = {
228
228
} as Options ,
229
229
runtime : {
230
230
type : 'string' ,
231
- describe : 'The version of Node.js to deploy the build to. (node16 )' ,
231
+ describe : 'The version of Node.js to deploy the build to. (node18 )' ,
232
232
} as Options ,
233
233
key : {
234
234
type : 'string' ,
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import { getDebugFunction } from '../utils/logger';
9
9
10
10
const debug = getDebugFunction ( 'twilio-run:templating:defaultConfig' ) ;
11
11
12
- const DEFAULT_RUNTIME = 'node16 ' ;
12
+ const DEFAULT_RUNTIME = 'node18 ' ;
13
13
14
14
function renderDefault ( config : Options ) : string {
15
15
if ( config . type === 'boolean' ) {
You can’t perform that action at this time.
0 commit comments