Skip to content

Commit

Permalink
feat(back): #787 support nodejs 17
Browse files Browse the repository at this point in the history
- Add nodejs-17_x to makeNodeJsVersion
  • Loading branch information
jpverde committed Feb 7, 2022
1 parent bbeaa4e commit 68754d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3581,7 +3581,7 @@ Types:
- makeNodeJsVersion (`function str -> package`):
- (`enum [ "10" "12" "14" "16" ]`):
- (`enum [ "10" "12" "14" "16" "17" ]`):
[Node.js][NODE_JS] version to use.
Example:
Expand Down Expand Up @@ -3622,7 +3622,7 @@ Types:
- name (`str`):
Custom name to assign to the build step, be creative, it helps in debugging.
- nodeJsVersion (`enum [ "10" "12" "14" "16" ]`):
- nodeJsVersion (`enum [ "10" "12" "14" "16" "17" ]`):
[Node.js][NODE_JS] version to use.
- packageJson (`package`):
Path to the `package.json` of your project.
Expand Down Expand Up @@ -3713,7 +3713,7 @@ Types:
- name (`str`):
Custom name to assign to the build step, be creative, it helps in debugging.
- nodeJsVersion (`enum [ "10" "12" "14" "16" ]`):
- nodeJsVersion (`enum [ "10" "12" "14" "16" "17" ]`):
[Node.js][NODE_JS] version to use.
- packageJson (`package`):
Path to the `package.json` of your project.
Expand Down
2 changes: 2 additions & 0 deletions src/args/make-node-js-version/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ else if version == "14"
then __nixpkgs__.nodejs-14_x
else if version == "16"
then __nixpkgs__.nodejs-16_x
else if version == "17"
then __nixpkgs__.nodejs-17_x
else abort "Supported node versions are: 10, 12, 14 and 16"

0 comments on commit 68754d5

Please sign in to comment.