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
Remove `inlineOnly`, `removeNodeProtocol`, `bundle`, `outExtension`,
`injectStyle`, `publicDir` and the `--public-dir` CLI flag.
tsdown-migrate now pins migrated projects to tsdown@^0.22.13, the last
version accepting these options, so tsup users can resolve deprecation
warnings before upgrading.
> The migration tool will automatically install dependencies after migration. Make sure to run the command from within your project directory.
30
30
31
+
> [!IMPORTANT]
32
+
> The migration tool installs **tsdown v0.22.13**, the last version that still accepts deprecated tsup-compatible options (with warnings). Newer versions of tsdown have removed these options entirely. Run your build on v0.22.13, resolve **all** deprecation warnings, and then upgrade `tsdown` to the latest version.
33
+
31
34
### Migration Options
32
35
33
36
The `migrate` command supports the following options to customize the migration process:
@@ -54,26 +57,28 @@ While `tsdown` aims to be highly compatible with `tsup`, there are some differen
|`skipNodeModulesBundle`|`deps: { neverBundle: true }`| Externalize all dependencies |
67
+
|`publicDir`|`copy`| Copy static files to output |
68
+
|`bundle: false`|`unbundle: true`| Inverted to positive form |
69
+
|`removeNodeProtocol: true`|`nodeProtocol: 'strip'`| More flexible with multiple modes |
70
+
|`injectStyle: true`|`css: { inject: true }`| Moved into CSS namespace |
71
+
72
+
None of the old names work in the latest tsdown. Those that previously emitted deprecation warnings (`outExtension`, `skipNodeModulesBundle`, `publicDir`, `bundle`, `removeNodeProtocol`, `injectStyle`) were accepted up to tsdown v0.22.13 — if your config still uses any of them, migrate on v0.22.13 first.
63
73
64
74
### Deprecated but Compatible Options
65
75
66
76
The following tsup options still work in tsdown for backward compatibility, but they emit deprecation warnings and **will be removed in a future version**. Migrate them to the preferred alternatives immediately.
Copy file name to clipboardExpand all lines: docs/reference/cli.md
-8Lines changed: 0 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -245,14 +245,6 @@ tsdown --copy public
245
245
246
246
All contents of the `public` directory will be copied to your output directory (e.g., `dist`).
247
247
248
-
## `--public-dir <dir>`
249
-
250
-
::: warning Deprecated
251
-
Please use `--copy` instead.
252
-
:::
253
-
254
-
An alias for `--copy`.
255
-
256
248
## `--exe`
257
249
258
250
**[experimental]** Bundle as a standalone executable using [Node.js Single Executable Applications](https://nodejs.org/api/single-executable-applications.html).
0 commit comments