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
# Workspace Migration Example

This example demonstrates morph-cli's ability to handle multi-package workspaces, migrating different packages with different recipes.

## Instructions

1.  Navigate to this directory.
2.  You can migrate the entire workspace:
    ```bash
    morph run commonjs-to-esm react-class-to-hooks .
    ```
3.  Or you can target a specific package:
    ```bash
    morph run commonjs-to-esm . --package @workspace-example/api
    ```
4.  Apply changes with `--write` when ready.