Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ const ENGINE_RUNTIMES_NAMES = Object.values(ENGINE_RUNTIMES);
export const RUNTIME_NOT_SET =
"`runtime` field is required but was not found in firebase.json.\n" +
"To fix this, add the following lines to the `functions` section of your firebase.json:\n" +
'"runtime": "nodejs16"\n';
'"runtime": "nodejs18"\n';

export const UNSUPPORTED_NODE_VERSION_FIREBASE_JSON_MSG = clc.bold(
`functions.runtime value is unsupported. ` +
`Valid choices are: ${clc.bold("nodejs{10|12|14|16}")}.`
`Valid choices are: ${clc.bold("nodejs{10|12|14|16|18}")}.`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

);

export const UNSUPPORTED_NODE_VERSION_PACKAGE_JSON_MSG = clc.bold(
`package.json in functions directory has an engines field which is unsupported. ` +
`Valid choices are: ${clc.bold('{"node": 10|12|14|16}')}`
`Valid choices are: ${clc.bold('{"node": 10|12|14|16|18}')}`
);

export const DEPRECATED_NODE_VERSION_INFO =
Expand Down