build: 增加最低 node 版本限制

This commit is contained in:
Hooray Hu 2024-02-29 14:15:21 +08:00
parent fa81882f25
commit 4ac539d082
2 changed files with 4 additions and 0 deletions

1
.npmrc
View File

@ -1,2 +1,3 @@
shamefully-hoist=true shamefully-hoist=true
strict-peer-dependencies=false strict-peer-dependencies=false
engine-strict=true

View File

@ -1,6 +1,9 @@
{ {
"type": "module", "type": "module",
"version": "4.6.1", "version": "4.6.1",
"engines": {
"node": "^18.0.0 || ^20.0.0"
},
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build": "vue-tsc && vite build", "build": "vue-tsc && vite build",