chore(node): update to node 22 LTS

This commit is contained in:
Fernando Fernández 2024-10-25 09:37:16 +00:00
parent 81731e2237
commit c2b174dd77
7 changed files with 15 additions and 11 deletions

View File

@ -31,7 +31,10 @@ done
rm -rf /var/lib/apt/lists/{*,.*} /var/cache/apt/archives/{*,.*}
EOF
# Set permissions and install node
# Set permissions, purge outdated packages and install node
RUN chmod 0755 /usr/sbin/install_packages && \
apt update -qq && \
apt upgrade -y && \
apt autoremove --purge -y && \
curl -fsSL https://deb.nodesource.com/setup_lts.x | bash && \
install_packages nodejs

View File

@ -64,7 +64,7 @@ jobs:
- name: Setup node environment ⚙️
uses: actions/setup-node@v4.0.4
with:
node-version: 20
node-version: lts/*
check-latest: true
cache: 'npm'

View File

@ -50,7 +50,7 @@ jobs:
- name: Setup node environment ⚙️
uses: actions/setup-node@v4.0.4
with:
node-version: 20
node-version: lts/*
check-latest: true
cache: 'npm'

1
.npmrc
View File

@ -1,4 +1,3 @@
lockfile-version=3
save-exact=true
engine-strict=true

7
package-lock.json generated
View File

@ -4,6 +4,7 @@
"requires": true,
"packages": {
"": {
"name": "jellyfin-vue",
"license": "GPL-3.0-only",
"workspaces": [
"frontend",
@ -19,9 +20,9 @@
"vue-tsc": "2.1.6"
},
"engines": {
"node": ">=20.8.1 <21.0.0",
"npm": ">=10.1.0",
"yarn": "Yarn is not supported. Please use NPM."
"node": ">=22.11.0 <23.0.0",
"npm": ">=10.9.0",
"yarn": "yarn is not supported. Please use npm"
}
},
"frontend": {

View File

@ -1,4 +1,5 @@
{
"name": "jellyfin-vue",
"private": true,
"type": "module",
"homepage": "https://jellyfin.org/",
@ -17,9 +18,9 @@
"packages/*"
],
"engines": {
"node": ">=20.8.1 <21.0.0",
"npm": ">=10.1.0",
"yarn": "Yarn is not supported. Please use NPM."
"node": ">=22.11.0 <23.0.0",
"npm": ">=10.9.0",
"yarn": "yarn is not supported. Please use npm"
},
"scripts": {
"lint": "npm run lint --workspaces",

View File

@ -1,7 +1,7 @@
## This dockerfile builds the client entirely in a Docker context
# slim image can't be used since we need git to fetch the commit hash
FROM node:20-slim AS build
FROM node:lts-slim AS build
# Set build arguments
ARG IS_STABLE=0