vitest_apply_ast_codemods
Applies TypeScript AST codemods to fix ESM type exports, Mocha timeouts, and require() calls, preparing packages for Vitest migration.
Instructions
Executes TypeScript AST transformations using ts-morph to fix isolated ESM type exports, Mocha timeouts, and require() calls.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"packagePath": "<packagePath>"
},
"name": "vitest_apply_ast_codemods"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| packagePath | Yes | Absolute path to the package directory |