修复:声明 Shiki 语言与主题依赖 - #19
Open
hifizz wants to merge 1 commit into
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Seems you are using me but didn't get OPENAI_API_KEY seted in Variables/Secrets for this repo. you could follow readme for more information |
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.
Motivation
@shikijs/langs/bash)的错误,原因是这些子包未作为项目的直接依赖暴露给严格的安装环境。Description
package.json中将@shikijs/langs和@shikijs/themes声明为生产依赖并固定为4.3.1,同时在pnpm-lock.yaml的 importer 列表中添加对应条目以确保严格安装时子路径可解析。Testing
pnpm install --offline --frozen-lockfile,安装并识别出@shikijs/langs@4.3.1与@shikijs/themes@4.3.1(成功)。pnpm typecheck(tsc --noEmit)检查类型(成功)。node -e "Promise.all([import('@shikijs/langs/bash'), import('@shikijs/themes/vitesse-light')])..."验证子路径动态导入(成功,子路径解析通过)。git diff --check验证无格式/检查错误(成功)。pnpm lint显示项目中存在与本次依赖更改无关的若干 React Hooks lint 错误(失败,问题为现有代码质量问题而非本次变更)。pnpm build时 Turbopack 已不再报 Shiki 相关的模块缺失错误,但构建在尝试从fonts.googleapis.com拉取 Google Fonts(Inter/Geist Mono)时因环境无法访问外部网络而失败(构建未通过,原因为网络字体下载失败,与 Shiki 子路径问题已无关)。Codex Task