Repository navigation
repo: record the hexo version in package.json - #17
Merged
Merged
Conversation
The hexo 8.1.2 bump updated the dependency range but left the
"hexo": { "version": ... } field at 7.3.0. Hexo rewrites that field with
the version it is actually running, so every "hexo generate" leaves the
working tree dirty -- the next person to run the site sees an unrelated
modification in git status.
Set it to 8.1.2 so the file matches the installed CLI.
Signed-off-by: cadywang <109458837+cadywang@users.noreply.github.com>
cadywang
force-pushed
the
build/hexo-version-field
branch
from
October 23, 2026 04:41
9ca451d to
ae8271f
Compare
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.
变更内容
hexo 8.1.2 的升级改了
dependencies.hexo的范围,但package.json里的"hexo": { "version": ... }字段仍是
7.3.0。Hexo 每次运行都会把这个字段重写成实际在跑的版本,于是跑一次hexo generate工作区就多出一处
package.json修改——实测就是这个问题,跟本次改动完全无关的脏文件。现在把字段改成
8.1.2,跑完构建工作区保持干净。变更类型
测试
发布审查清单
npm run build且构建通过Signed-off-by:(git commit -s)<subsystem>: <祈使句摘要>审查人重点看什么
hexo.version是否与dependencies.hexo一致(现在都是 8.1.2)。关联 Issue
无独立 Issue。来自修复 hexo-generator-feed PR #15 时发现的脏工作区。