refactor(projects): use new elegant-router plugin

This commit is contained in:
Soybean
2025-10-13 16:35:20 +08:00
parent d5a3a25d3d
commit 858d7625a4
39 changed files with 634 additions and 708 deletions

51
pnpm-lock.yaml generated
View File

@@ -120,6 +120,9 @@ importers:
consola:
specifier: 3.4.2
version: 3.4.2
elegant-router:
specifier: 1.0.4
version: 1.0.4
eslint:
specifier: 9.37.0
version: 9.37.0(jiti@2.6.1)
@@ -1079,6 +1082,9 @@ packages:
resolution: {integrity: sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==}
engines: {node: '>=10.13.0'}
'@ts-morph/common@0.28.0':
resolution: {integrity: sha512-4w6X/oFmvXcwux6y6ExfM/xSqMHw20cYwFJH+BlYrtGa6nwY9qGq8GXnUs1sVYeF2o/KT3S8hAH6sKBI3VOkBg==}
'@tybys/wasm-util@0.10.1':
resolution: {integrity: sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==}
@@ -1745,6 +1751,9 @@ packages:
resolution: {integrity: sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==}
engines: {node: '>=0.8'}
code-block-writer@13.0.3:
resolution: {integrity: sha512-Oofo0pq3IKnsFtuHqSF7TqBfr71aeyZDVJ0HpmqB7FBM2qEigL0iPONSCZSO9pE9dZTAxANe5XHG9Uy0YMv8cg==}
collection-visit@1.0.0:
resolution: {integrity: sha512-lNkKvzEeMBBjUGHZ+q6z9pSJla0KWAQPvtzhEV9+iGyQYG+pBpl7xKDhxoNSOZH2hhv0v5k0y2yAM4o4SjoSkw==}
engines: {node: '>=0.10.0'}
@@ -2000,6 +2009,10 @@ packages:
electron-to-chromium@1.5.234:
resolution: {integrity: sha512-RXfEp2x+VRYn8jbKfQlRImzoJU01kyDvVPBmG39eU2iuRVhuS6vQNocB8J0/8GrIMLnPzgz4eW6WiRnJkTuNWg==}
elegant-router@1.0.4:
resolution: {integrity: sha512-AiQLMCCNpnXeakfeUmufAFGBTJmHHi5N7yjlw5BPpNSisltqAHvprl2Xxa+YsxrMg9lYhK3jyxHsgxw6+veVfQ==}
hasBin: true
emoji-regex@8.0.0:
resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}
@@ -3633,6 +3646,10 @@ packages:
resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==}
engines: {node: '>=8'}
strip-json-comments@5.0.3:
resolution: {integrity: sha512-1tB5mhVo7U+ETBKNf92xT4hrQa3pm0MZ0PQvuDnWgAAGHDsfp4lPSpiS6psrSiet87wyGPh9ft6wmhOMQ0hDiw==}
engines: {node: '>=14.16'}
superjson@2.2.2:
resolution: {integrity: sha512-5JRxVqC8I8NuOUjzBbvVJAKNM8qoVuH0O77h4WInc/qC2q5IreqKxYwgkga3PfA22OayK2ikceb/B26dztPl+Q==}
engines: {node: '>=16'}
@@ -3728,6 +3745,9 @@ packages:
peerDependencies:
typescript: '>=4.0.0'
ts-morph@27.0.0:
resolution: {integrity: sha512-xcqelpTR5PCuZMs54qp9DE3t7tPgA2v/P1/qdW4ke5b3Y5liTGTYj6a/twT35EQW/H5okRqp1UOqwNlgg0K0eQ==}
tslib@2.3.0:
resolution: {integrity: sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==}
@@ -4827,6 +4847,12 @@ snapshots:
'@trysound/sax@0.2.0': {}
'@ts-morph/common@0.28.0':
dependencies:
minimatch: 10.0.3
path-browserify: 1.0.1
tinyglobby: 0.2.15
'@tybys/wasm-util@0.10.1':
dependencies:
tslib: 2.8.1
@@ -5644,6 +5670,8 @@ snapshots:
clone@2.1.2: {}
code-block-writer@13.0.3: {}
collection-visit@1.0.0:
dependencies:
map-visit: 1.0.0
@@ -5879,6 +5907,22 @@ snapshots:
electron-to-chromium@1.5.234: {}
elegant-router@1.0.4:
dependencies:
cac: 6.7.14
chokidar: 4.0.3
consola: 3.4.2
enquirer: 2.4.1
kolorist: 1.8.0
pathe: 2.0.3
picomatch: 4.0.3
strip-json-comments: 5.0.3
tinyglobby: 0.2.15
ts-morph: 27.0.0
unconfig: 7.3.3
unplugin: 2.3.10
unplugin-utils: 0.3.0
emoji-regex@8.0.0: {}
emoji-regex@9.2.2: {}
@@ -7666,6 +7710,8 @@ snapshots:
strip-json-comments@3.1.1: {}
strip-json-comments@5.0.3: {}
superjson@2.2.2:
dependencies:
copy-anything: 3.0.5
@@ -7775,6 +7821,11 @@ snapshots:
picomatch: 4.0.3
typescript: 5.9.3
ts-morph@27.0.0:
dependencies:
'@ts-morph/common': 0.28.0
code-block-writer: 13.0.3
tslib@2.3.0: {}
tslib@2.8.1: {}