mirror of
https://github.com/DorkSquadRR/DorkNet.git
synced 2026-10-25 23:18:44 -07:00
chore(deps): pin Node 22.22+ for frontend builds
CodeRabbit on PR #49: the Docker build stages still used node:20-alpine, which vite 7 (>=20.19/22.12) and react-router 8 (>=22.22) no longer support. Bump NODE_VERSION to 22 in both Dockerfiles and declare engines.node >=22.22.0 in both app manifests so local installs on an old Node fail loudly instead of at build time.
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@
|
|||||||
# context.
|
# context.
|
||||||
|
|
||||||
ARG DOTNET_VERSION=9.0
|
ARG DOTNET_VERSION=9.0
|
||||||
ARG NODE_VERSION=20
|
ARG NODE_VERSION=22
|
||||||
|
|
||||||
# ── admin SPA build stage ──────────────────────────────────────────
|
# ── admin SPA build stage ──────────────────────────────────────────
|
||||||
# The Vite + React admin UI under DorkNet.Server/admin-ui builds in a
|
# The Vite + React admin UI under DorkNet.Server/admin-ui builds in a
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
ARG DOTNET_VERSION=9.0
|
ARG DOTNET_VERSION=9.0
|
||||||
ARG NODE_VERSION=20
|
ARG NODE_VERSION=22
|
||||||
|
|
||||||
FROM node:${NODE_VERSION}-alpine AS admin-ui
|
FROM node:${NODE_VERSION}-alpine AS admin-ui
|
||||||
WORKDIR /ui
|
WORKDIR /ui
|
||||||
|
|||||||
+3
@@ -23,6 +23,9 @@
|
|||||||
"tailwindcss": "^3.4.15",
|
"tailwindcss": "^3.4.15",
|
||||||
"typescript": "^5.6.3",
|
"typescript": "^5.6.3",
|
||||||
"vite": "^7.3.6"
|
"vite": "^7.3.6"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=22.22.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@alloc/quick-lru": {
|
"node_modules/@alloc/quick-lru": {
|
||||||
|
|||||||
@@ -3,6 +3,9 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=22.22.0"
|
||||||
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "tsc -b && vite build",
|
"build": "tsc -b && vite build",
|
||||||
|
|||||||
Generated
+3
@@ -22,6 +22,9 @@
|
|||||||
"tailwindcss": "^3.4.15",
|
"tailwindcss": "^3.4.15",
|
||||||
"typescript": "^5.6.3",
|
"typescript": "^5.6.3",
|
||||||
"vite": "^7.3.6"
|
"vite": "^7.3.6"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=22.22.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@alloc/quick-lru": {
|
"node_modules/@alloc/quick-lru": {
|
||||||
|
|||||||
@@ -3,6 +3,9 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=22.22.0"
|
||||||
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "tsc -b && vite build",
|
"build": "tsc -b && vite build",
|
||||||
|
|||||||
Reference in New Issue
Block a user