Repository navigation
chore: npm 包不再打入 examples/jeepay 语料 - #25
Merged
Merged
Conversation
插件运行时(CLI、生成与校验脚本、viewer)不读取 examples/,它只是仓库内的 测试与演示语料。从 package.json 的 files 中移除,包内文件 102 → 88, 解压体积 3.45 MB → 3.28 MB。 - graph-schema.md 的时序示例指针改为 GitHub 链接,安装后仍可查阅 - 打包测试改为断言包内不含 examples/,示例输入改从仓库读取
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.
功能:插件运行时(CLI、生成与校验脚本、viewer)都不读取
examples/,它只是仓库内的测试与演示语料。本 PR 从package.json的files中移除examples/jeepay/,包内文件 102 → 88,tgz 1018 KB → 997 KB,解压 3.45 MB → 3.28 MB。仓库里的examples/jeepay/保持不变。修改 3 个文件
package.json:files删去"examples/jeepay/"一项。skills/q-flow/references/graph-schema.md:时序示例指针由“仓库和包内”改为指向 GitHubmain上examples/jeepay/sequence.graph.json的链接,安装后的技能仍可查到示例。tests/plugin-package.test.mjs:包内必需文件列表去掉examples/jeepay/flowchart.graph.json,改为断言包内不含任何examples/文件;对已安装包跑 validate / generate 的三处示例输入改为从仓库根读取。验证:
node --test tests/plugin-package.test.mjs5/5 通过;npm pack --dry-run改前 102 文件 / 1,018,403 B / 解压 3,451,800 B,改后 88 文件 / 997,258 B / 解压 3,277,126 B。未跑全量 Node 测试与浏览器矩阵。注意:
publish-github-npm.yml的 npx 核对步骤本来就从 checkout 复制flowchart.graph.json,不依赖包内示例,无需改动。README.md与docs/readme/6 份译文仍有指向examples/jeepay的相对链接和命令示例,在 npmjs / GitHub 页面上能正常解析,但在本地node_modules里打开会失效。这些内容本来就是写给克隆仓库的用户的,所以没有改。viewer-dist/index.html内联布局 Worker 时重复打包的排版代码。这一块不在本 PR 范围内。