0
0
mirror of https://github.com/tj/n.git synced 2024-11-21 18:48:57 +01:00

Add more codenames, out to 2026

This commit is contained in:
John Gee 2024-10-28 14:12:13 +13:00
parent 9d9e58a1df
commit 7128e837f3
2 changed files with 2 additions and 2 deletions

2
bin/n
View File

@ -262,7 +262,7 @@ function update_arch_settings_for_version() {
function is_lts_codename() {
# https://github.com/nodejs/Release/blob/master/CODENAMES.md
# e.g. argon, Boron
[[ "$1" =~ ^([Aa]rgon|[Bb]oron|[Cc]arbon|[Dd]ubnium|[Ee]rbium|[Ff]ermium|[Gg]allium|[Hh]ydrogen|[Ii]ron|[Jj]od)$ ]]
[[ "$1" =~ ^([Aa]rgon|[Bb]oron|[Cc]arbon|[Dd]ubnium|[Ee]rbium|[Ff]ermium|[Gg]allium|[Hh]ydrogen|[Ii]ron|[Jj]od|[Kk]rypton|[Ll]ithium)$ ]]
}
#

View File

@ -19,7 +19,7 @@ function teardown() {
@test "n --download 4.9.1" {
n --download 4.9.1
[ -d "${N_PREFIX}/n/versions/node/4.9.1" ]
# Remember, we installed a dumy node so do have a bin/node
# Remember, we installed a dummy node so do have a bin/node
[ ! -f "${N_PREFIX}/bin/npm" ]
[ ! -d "${N_PREFIX}/include" ]
[ ! -d "${N_PREFIX}/lib" ]