2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 01:57:19 +08:00

feat: update node 22

This commit is contained in:
耗子
2024-11-26 02:40:02 +08:00
parent 2208ff1c29
commit a2c96993d3
6 changed files with 15 additions and 12 deletions

View File

@@ -23,7 +23,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: 'pnpm'
cache-dependency-path: web/pnpm-lock.yaml
- name: Build frontend

View File

@@ -72,7 +72,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: 'pnpm'
cache-dependency-path: web/pnpm-lock.yaml
- name: Run pnpm lint

View File

@@ -53,7 +53,7 @@
"@iconify/json": "^2.2.275",
"@iconify/vue": "^4.1.2",
"@rushstack/eslint-patch": "^1.10.4",
"@tsconfig/node20": "^20.1.4",
"@tsconfig/node22": "^22.0.0",
"@types/lodash-es": "^4.17.12",
"@types/luxon": "^3.4.2",
"@types/node": "^22.9.1",

12
web/pnpm-lock.yaml generated
View File

@@ -102,9 +102,9 @@ importers:
'@rushstack/eslint-patch':
specifier: ^1.10.4
version: 1.10.4
'@tsconfig/node20':
specifier: ^20.1.4
version: 20.1.4
'@tsconfig/node22':
specifier: ^22.0.0
version: 22.0.0
'@types/lodash-es':
specifier: ^4.17.12
version: 4.17.12
@@ -1142,8 +1142,8 @@ packages:
resolution: {integrity: sha512-LtoMMhxAlorcGhmFYI+LhPgbPZCkgP6ra1YL604EeF6U98pLlQ3iWIGMdWSC+vWmPBWBNgmDBAhnAobLROJmwg==}
engines: {node: '>=18'}
'@tsconfig/node20@20.1.4':
resolution: {integrity: sha512-sqgsT69YFeLWf5NtJ4Xq/xAF8p4ZQHlmGW74Nu2tD4+g5fAsposc4ZfaaPixVu4y01BEiDCWLRDCvDM5JOsRxg==}
'@tsconfig/node22@22.0.0':
resolution: {integrity: sha512-twLQ77zevtxobBOD4ToAtVmuYrpeYUh3qh+TEp+08IWhpsrIflVHqQ1F1CiPxQGL7doCdBIOOCF+1Tm833faNg==}
'@types/estree@1.0.6':
resolution: {integrity: sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==}
@@ -4535,7 +4535,7 @@ snapshots:
'@sindresorhus/merge-streams@2.3.0': {}
'@tsconfig/node20@20.1.4': {}
'@tsconfig/node22@22.0.0': {}
'@types/estree@1.0.6': {}

View File

@@ -2,6 +2,8 @@
"extends": "@vue/tsconfig/tsconfig.dom.json",
"compilerOptions": {
"composite": true,
"noEmit": true,
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
"target": "ESNext",
"lib": [
"DOM",

View File

@@ -1,9 +1,11 @@
{
"extends": [
"@tsconfig/node20/tsconfig.json"
"@tsconfig/node22/tsconfig.json"
],
"compilerOptions": {
"composite": true,
"noEmit": true,
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
"module": "ESNext",
"moduleResolution": "Bundler",
"paths": {
@@ -16,7 +18,6 @@
},
"types": [
"node"
],
"noEmit": true
]
}
}