跳到正文
cccskills
免费在 GitHub 公开

sync-core-lib

Sync the vendored dcc-core-lib copy after a lib fix merges upstream, then clean up temporary adapter workarounds. Use after a moonloch/dcc-core-lib PR lands, or when asked to update module/vendor/dcc-core-lib.

中文简介正在准备中。当前显示原文说明。

foundryvtt-dcc/dcc星标 44(GitHub 44 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(1)

  • SKILL.md1.9 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Vendor sync for dcc-core-lib

The lib's compiled output lives at module/vendor/dcc-core-lib/ and is committed to the system repo (Foundry has no bundler). The upstream checkout is at /Users/timlwhite/WebstormProjects/dcc-core-lib (public GitHub repo moonloch/dcc-core-lib).

Sync procedure

  1. After the lib PR merges, pull main in the lib checkout. It must be clean and on the merged commit; otherwise VERSION.json records "dirty": true or a SHA that isn't on the lib's main.
  2. From the system repo, run pnpm run sync-core-lib. The script (scripts/sync-core-lib.mjs) empties the lib's dist/, builds the lib via pnpm run build (the lib uses pnpm), copies dist/ into the vendor directory, strips sourcemaps, and writes module/vendor/dcc-core-lib/VERSION.json with the source commit SHA + timestamp.
    • Override the source path with DCC_CORE_LIB_SRC=/path/to/dcc-core-lib pnpm run sync-core-lib.
    • Since lib 0.14.4, dist/ contains no compiled test files and adds dcc-core-lib.d.ts, the whole public API in one declaration file.
  3. Check the vendor diff. Changes to .js files outside comments mean behavior changes: run the affected unit tests and E2E specs. Changes only to .d.ts files are type-only.
  4. Commit the resulting vendor diff with a message like vendor: sync dcc-core-lib to <version> (<sha7>).

Adapter cleanup follows the sync

Once the new vendor copy is in place, remove any temporary adapter workaround added while the lib fix was in flight, and update tests that were asserting the workaround's compensated values back to the natural contract.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

pr

免费

Create a pull request for the DCC system. Handles branch verify, i18n translation, checks, E2E gate, simplify, commit, push, create/update PR, review, auto-fix. No version bump — that happens on main at release time.

中文简介正在准备中。当前显示原文说明。

foundryvtt-dcc/dcc442026年10月25日 更新

release

免费

Release a new version of the DCC system

中文简介正在准备中。当前显示原文说明。

foundryvtt-dcc/dcc442026年10月25日 更新

查看 foundryvtt-dcc 的全部技能

报告此技能的问题