-
Notifications
You must be signed in to change notification settings - Fork 160
feat: Specify Node.js runtime version in serverless.yml #257
Conversation
PIC123
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…rsion is specified
|
Made some more changes. Now if the user does not specify runtime version the plugin throws an errors and just does not use the default value (10.14.1), Also added a new test case. |
…latest avaliable 10x version of nodejs
tbarlow12
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Getting there :)
| @@ -0,0 +1,63 @@ | |||
| { | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you document where you got this file? Maybe in a comment in functionApp.ts?
|
|
||
| //Searches for the latest verison | ||
| if(runtime.includes(".x")){ | ||
| let majorVersion = runtime.replace(/[^0-9]/g,""); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use const here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, remove extra space
tbarlow12
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ![]()
Specify Node.js runtime version in serverless.yml under provider. Throws an error for invalid Node.js version. AB#704
Specify Node.js runtime version in serverless.yml under provider. Throws an error for invalid Node.js version.
AB#704