🚚 chore: migrate project toolchain to Vite+#79
Merged
Conversation
SigureMo
reviewed
Apr 12, 2026
SigureMo
requested changes
Apr 12, 2026
Contributor
Author
|
已按 review 改完并推了新提交
本地重新验证过: pnpm exec vp check
pnpm exec vp test
pnpm exec vp pack都通过了,辛苦再看下喵 @SigureMo |
SigureMo
reviewed
Apr 12, 2026
| uses: actions/checkout@v6 | ||
| with: | ||
| ref: ${{ github.head_ref }} | ||
| ref: ${{ github.head_ref || github.ref_name }} |
Comment on lines
-4
to
-6
| pull_request: | ||
| branches: | ||
| - main |
Contributor
Author
|
补了一个很小的 follow-up 提交
本地重新跑过: pnpm exec vp check
pnpm exec vp test
pnpm exec vp pack都通过了。 |
SigureMo
requested changes
Apr 12, 2026
Comment on lines
-4
to
-6
| pull_request: | ||
| branches: | ||
| - main |
| uses: actions/checkout@v6 | ||
| with: | ||
| ref: ${{ github.head_ref }} | ||
| ref: ${{ github.head_ref || github.ref_name }} |
Contributor
Author
|
收到,刚才那两处我理解偏了,已经按你的意思直接改回并推了 |
SigureMo
approved these changes
Apr 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
按要求将仓库做一次最小但完整的 vp / Vite+ 迁移,保留现有 GitHub Action 的
dist/index.js产物约定。主要改动
vite.config.ts,集中管理:fmtlinttestpackvitest迁移到vite-plus/testrolldown脚本迁移到vp packvp fmt/vp check/vp testvoidzero-dev/setup-vp@v1vp check下暴露出的少量 lint / type / logging 问题,保证迁移后检查通过dist/index.js验证
已在本地验证:
其中:
vp check通过vp test通过(31 tests)vp pack生成单文件dist/index.js风险说明
dist/index.js的打包器从 Rolldown CLI 切换为 Vite+ 内置的vp pack(底层为 tsdown),产物体积有小幅变化,但已保持为可供action.yml直接使用的单文件输出@SigureMo 麻烦有空帮忙看一下喵。