morph-cli 0.1.0

AST-based codebase migration and codemod tool for JavaScript and TypeScript projects.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Preset Workflows Example

This example showcases how to use built-in preset workflows and custom configuration profiles in `morph-cli.toml`.

## Instructions

1.  Navigate to this directory.
2.  Run the `node-to-modern` preset workflow to automatically apply the recommended Node.js modernization recipes:
    ```bash
    morph preset run node-to-modern .
    ```
3.  To use the aggressive config profile defined in `morph-cli.toml`:
    ```bash
    morph preset run node-to-modern . --profile aggressive
    ```
4.  Observe how the presets combine multiple recipes (e.g., CommonJS to ESM, Express to Fastify) in a single run.