diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 30d534a0a80..7b9a1bdf2cd 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -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 diff --git a/.github/workflows/__package.yml b/.github/workflows/__package.yml index 5cde8610069..8e1e8093090 100644 --- a/.github/workflows/__package.yml +++ b/.github/workflows/__package.yml @@ -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' diff --git a/.github/workflows/__quality_checks.yml b/.github/workflows/__quality_checks.yml index 62f4049767f..901bdc28447 100644 --- a/.github/workflows/__quality_checks.yml +++ b/.github/workflows/__quality_checks.yml @@ -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' diff --git a/.npmrc b/.npmrc index 7fb1decd4b6..d45d3e1c6b8 100644 --- a/.npmrc +++ b/.npmrc @@ -1,4 +1,3 @@ -lockfile-version=3 save-exact=true engine-strict=true diff --git a/package-lock.json b/package-lock.json index 423e8b13392..858292f8ccc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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": { diff --git a/package.json b/package.json index c2a91ecafb2..5487615c74c 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/packaging/docker/Dockerfile b/packaging/docker/Dockerfile index 0a249396151..3f2b29d88ee 100644 --- a/packaging/docker/Dockerfile +++ b/packaging/docker/Dockerfile @@ -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