From 89a6d527a7501d87f1880a0f5ecdbffc83cfeeaf Mon Sep 17 00:00:00 2001 From: Sam Stenvall Date: Sun, 18 Feb 2024 20:44:25 +0200 Subject: [PATCH] Bump minimum required Node.js version to 18.x to match what SvelteKit 2 needs --- .github/workflows/ci.yml | 10 +++++----- package-lock.json | 2 +- package.json | 2 +- webif/package-lock.json | 3 +++ webif/package.json | 3 +++ 5 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4640919..4ab71df 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v2 with: - node-version: '16.x' + node-version: '18.x' - name: Install dependencies run: npm ci - name: Check formatting @@ -30,7 +30,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v2 with: - node-version: '16.x' + node-version: '18.x' - name: Install dependencies run: npm ci - name: Run eslint @@ -43,7 +43,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v2 with: - node-version: '16.x' + node-version: '18.x' - name: Install dependencies run: npm ci - name: Run tests @@ -59,7 +59,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v2 with: - node-version: '16.x' + node-version: '18.x' - name: Install dependencies run: npm ci - name: Check formatting @@ -75,7 +75,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v2 with: - node-version: '16.x' + node-version: '18.x' - name: Install dependencies run: npm ci - name: Run eslint diff --git a/package-lock.json b/package-lock.json index 7442fc0..0d7dc78 100644 --- a/package-lock.json +++ b/package-lock.json @@ -34,7 +34,7 @@ "typescript": "^5.2.2" }, "engines": { - "node": ">= 16" + "node": ">= 18" } }, "node_modules/@aashutoshrathi/word-wrap": { diff --git a/package.json b/package.json index b273438..cc0fd41 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "test": "jest" }, "engines": { - "node": ">= 16" + "node": ">= 18" }, "devDependencies": { "@tsconfig/node16": "^16.1.1", diff --git a/webif/package-lock.json b/webif/package-lock.json index ab15f40..ff632ae 100644 --- a/webif/package-lock.json +++ b/webif/package-lock.json @@ -23,6 +23,9 @@ "tslib": "^2.4.1", "typescript": "^5.0.0", "vite": "^5.0.0" + }, + "engines": { + "node": ">= 18" } }, "node_modules/@aashutoshrathi/word-wrap": { diff --git a/webif/package.json b/webif/package.json index a4e05ee..2f0996d 100644 --- a/webif/package.json +++ b/webif/package.json @@ -12,6 +12,9 @@ "prettier": "prettier --write src/", "prettier-check": "prettier --check src/" }, + "engines": { + "node": ">= 18" + }, "devDependencies": { "@sveltejs/adapter-static": "^3.0.1", "@sveltejs/kit": "^2.5.0",