diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 30d534a0..7b9a1bdf 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 5cde8610..8e1e8093 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 62f40497..901bdc28 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 7fb1decd..d45d3e1c 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 423e8b13..858292f8 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 c2a91eca..5487615c 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 0a249396..3f2b29d8 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