Skip to content
← Public packages

@kentcdodds/codemod-runner

Run codemods over your own saved packages: scan, dry-run with real publish checks and diffs, apply, and revert.

package.json

30 lines · 1.0 KB · JSON
{
	"name": "@kentcdodds/codemod-runner",
	"version": "1.0.1",
	"private": false,
	"license": "MIT",
	"type": "module",
	"scripts": {
		"test": "node --test --experimental-strip-types src/*.test.ts"
	},
	"exports": {
		"./scan": "./src/scan.ts",
		"./dry-run": "./src/dry-run.ts",
		"./apply": "./src/apply.ts",
		"./revert": "./src/revert.ts",
		"./runs": "./src/runs.ts",
		"./contract": "./src/contract.ts"
	},
	"kody": {
		"id": "codemod-runner",
		"description": "Run codemods over your own saved packages: scan, dry-run with real publish checks and diffs, apply, and revert.",
		"emits": {
			"@kentcdodds/codemod.applied": {
				"description": "A codemod-runner apply republished one of your packages. Payload: run_id, codemod, package_id, kody_id, changed_paths, before_commit, after_commit."
			},
			"@kentcdodds/codemod.reverted": {
				"description": "A codemod-runner revert restored one of your packages to its pre-codemod tree. Payload: run_id, codemod, package_id, kody_id, before_commit, after_commit."
			}
		}
	}
}