build: 补充 Node.js 版本要求配置

在 package.json 中添加 engines 字段,指定项目所需 Node.js 版本不低于 20.10.0,确保开发和构建环境版本一致。
This commit is contained in:
zhangzhenbing committed 2026-11-16 15:38:06 +08:00
1 parent c10ad236d8
commit 06373a35a2
1 file changed
+3
+3
View File
@@ -5,6 +5,9 @@
"type": "module", "type": "module",
"description": "梦象虚拟电厂集中门户 - 多系统链接统一管理平台", "description": "梦象虚拟电厂集中门户 - 多系统链接统一管理平台",
"author": "上海梦象智能科技有限公司", "author": "上海梦象智能科技有限公司",
"engines": {
"node": ">=20.10.0"
},
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build": "vite build", "build": "vite build",