fix: clean up deprecated config and strengthen CI#463
Merged
Leaf-0w0 merged 5 commits intoMay 13, 2026
Conversation
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.
Type of change
Checklist
Related Issue
N/A
Changes
baseUrl选项,并将路径别名更新为显式的./src/...目标路径。pnpm type-check更新为运行tsc --noEmit,并补充 Astro 与 Svelte 组件模块声明,使独立 TypeScript 检查能够覆盖这些导入。pnpm type-check,确保 TypeScript 配置类问题能在合并前被发现。on:event指令迁移为事件属性写法。document.execCommand("copy")剪贴板备用逻辑,改为依赖 Clipboard API。ttf2woff2额外 clone 步骤,避免字体压缩过程中触发 Fontmin 的弃用文件 clone 路径。How To Test
nr type-checknr checknr buildnode --trace-deprecation scripts/compress-fonts.jsScreenshots (if applicable)
N/A. This PR does not include visual UI changes.
Additional Notes
本次改动源于 TypeScript 6 对
baseUrl的弃用警告。此前 GitHub Actions 没有运行独立的pnpm type-check,因此该问题没有在 CI 中暴露。pnpm build仍可能输出项目中既有的 Vite 警告,例如无关源码里的未使用导入;这些警告并非本 PR 新增。