You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guide/migrate-from-tsup.md
+16-1Lines changed: 16 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,14 +10,29 @@ If you're currently using `tsup` and want to migrate to `tsdown`, the process is
10
10
npx tsdown-migrate
11
11
```
12
12
13
+
For monorepos, you can specify directories using glob patterns:
14
+
15
+
```bash
16
+
npx tsdown-migrate packages/*
17
+
```
18
+
19
+
Or specify multiple directories explicitly:
20
+
21
+
```bash
22
+
npx tsdown-migrate packages/foo packages/bar
23
+
```
24
+
13
25
> [!WARNING]
14
26
> Please save your changes before migration. The migration process may modify your configuration files, so it's important to ensure all your changes are committed or backed up beforehand.
15
27
28
+
> [!TIP]
29
+
> The migration tool will automatically install dependencies after migration. Make sure to run the command from within your project directory.
30
+
16
31
### Migration Options
17
32
18
33
The `migrate` command supports the following options to customize the migration process:
19
34
20
-
-`--cwd <dir>` (or `-c`): Specify the working directory for the migration.
35
+
-`[...dirs]`: Specify directories to migrate. Supports glob patterns (e.g., `packages/*`). Defaults to the current directory if not specified.
21
36
-`--dry-run` (or `-d`): Perform a dry run to preview the migration without making any changes.
22
37
23
38
With these options, you can easily tailor the migration process to fit your specific project setup.
0 commit comments