From eeca39fc752cf802cf72338564526d9be53013d7 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Thu, 6 Nov 2025 22:12:45 +0100 Subject: [PATCH] chore: update Node and NPM version Update Node version to support Nextcloud 32+ (Node 22 and Node 24). Use `devEngines` to use the same Node version as current apps use for their development to make sure CI and local tests and packages are the same. Signed-off-by: Ferdinand Thiessen --- package-lock.json | 3 +-- package.json | 15 +++++++++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0510065..886dc31 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,8 +20,7 @@ "vite": "^6.3.5" }, "engines": { - "node": "^20.0.0", - "npm": "^10.5.0" + "node": "^20.0.0 || ^22.0.0 || ^24.0.0" } }, "node_modules/@babel/helper-string-parser": { diff --git a/package.json b/package.json index 75c69bc..91a8376 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,18 @@ "vite": "^6.3.5" }, "engines": { - "node": "^20.0.0", - "npm": "^10.5.0" + "node": "^20.0.0 || ^22.0.0 || ^24.0.0" + }, + "devEngines": { + "packageManager": [{ + "name": "npm", + "onFail": "error", + "version": "^11.3.0" + }], + "runtime": { + "name": "node", + "onFail": "error", + "version": "^24.0.0" + } } }