Repository navigation
feat(registry): warning 指向 compatible_rulesets,区分硬依赖与归属标签 - #30
Merged
Merged
Conversation
diceframe#694 已经在应用侧拆出 compatible_rulesets(只做市场标签、不要求 runtime)。 索引侧同步: - warnUndeclaredRuleset 认可 compatible_rulesets,不再要求无 runtime 的系统去写 requires.rulesets(那会让发布/安装失败) - warning 文案按三种情形给出正确写法:已注册 runtime / 尚无 runtime / 通用包 - 模板 README 换掉「二选一」说法,改为三分支表格,并写明标签与 system_agnostic 互斥、 归一化规则(coc → coc7)、以及不要为了「看起来正式」平白加硬依赖 验证:node --test 17 passed;node scripts/validate.cjs 通过。
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.
同步 diceframe#694 的实现(https://github.com/diceframe/diceframe/pull/696):
compatible_rulesets:只做市场归属标签,不校验 runtime、不阻塞安装改动
warnUndeclaredRuleset认可compatible_rulesets,不再让「没有 runtime 的系统」去写requires.rulesets(那会直接让发布/安装失败)system_agnostic互斥、别名归一化(coc→coc7),以及不要为了「看起来正式」平白加硬依赖验证
node --test tests/registry.test.cjs→ 17 passed(新增 2 条:有标签不告警、warning 指向标签)node scripts/validate.cjs→ 通过依赖
应用侧 #696 先合(base 是 #693 的分支)。这个 PR 单独合也不会破坏现有索引:只是 warning 文案与文档。