Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions docs/contributing/package-codemods.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,20 @@ and publish paths are covered in
- **Community listing publishes.** A successful apply republishes the owning
user's saved package only. Pinned community listings keep serving the pinned
commit; listing snapshots are not advanced by codemod apply or revert.
- **Personal codemods.** The built-in system is for **platform-authored**
migrations: the transform ships in this repo, reviewed and fixture-tested in
CI, because its correctness is pinned to a platform version and it runs
fleet-wide over other users' source. A user transforming **their own**
packages with **their own** transform needs no primitive — every required
power (repo sessions, `repo_run_checks` against a staged tree, gated publish,
git history) already exists as user capabilities. That userland pattern is
packaged as the
[`@kentcdodds/codemod-runner`](https://heykody.dev/community/b06c0f98-865a-4379-adb0-d0fb2cdda14f)
community package: same contract vocabulary (`detect`/`transform`,
dry-run-before-apply, drift skips, idempotency verification, revert
snapshots), with the codemod authored as a package export the user owns. Do
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
not grow the built-in engine to execute user-authored transforms; the dividing
line is who authored the transform.

## Codemod contract

Expand Down
Loading