feat(cli): tsup -> tsdown -> Vite+ migration - #2434
Conversation
✅ Deploy Preview for viteplus-preview canceled.
|
Registry bridge build (
|
| Package | Version |
|---|---|
vite-plus |
0.0.0-commit.2c857991cf429f3636b5ac65acfe2eff2deed30e |
@voidzero-dev/vite-plus-core |
0.0.0-commit.2c857991cf429f3636b5ac65acfe2eff2deed30e |
Install the Vite+ CLI built from this commit, then migrate a project:
# macOS / Linux
curl -fsSL https://vite.plus | VP_PR_VERSION=2434 bash# Windows (PowerShell)
$env:VP_PR_VERSION="2434"; irm https://vite.plus/ps1 | iexAfter installing, upgrade the current project's vite-plus to this test build with:
vp migrateOr point your package manager at the bridge registry https://registry-bridge.viteplus.dev/:
| Package manager | Registry config |
|---|---|
| npm / pnpm / Bun | .npmrc: registry=https://registry-bridge.viteplus.dev/ |
| Yarn (v2+) | .yarnrc.yml: npmRegistryServer: "https://registry-bridge.viteplus.dev/" |
Then pin the build (vite aliases to vite-plus-core; pnpm can use a catalog, npm an overrides entry):
{
"devDependencies": {
"vite-plus": "0.0.0-commit.2c857991cf429f3636b5ac65acfe2eff2deed30e",
"vite": "npm:@voidzero-dev/vite-plus-core@0.0.0-commit.2c857991cf429f3636b5ac65acfe2eff2deed30e"
}
}
fengmk2
left a comment
There was a problem hiding this comment.
@KTrain5169 Thanks!
I will take over this pr and add a new ecosystem-ci test case for tsdown migration before merge.
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
…n before prettier
80bd4fc to
280fb12
Compare
Add automatic
tsupmigration tovp migrate.For example,
vp migrate --no-interactivechanges thenvie/decodersproject as follows.The command removes the
tsupdependency. It changestsup.config.tstotsdown.config.ts:The command adds the converted configuration to
vite.config.ts:The command reports the migration:
If the user declines automatic migration or the command fails, Vite+ shows the
tsdown-migrateskill for manual migration.The
nvie/decodersecosystem test runsvp packandvp teston Linux and Windows.Use
tsdown-migrate@0.23.0-rc.0because stable0.22.xdoes not support non-TTY subprocesses.The dependency upgrade script keeps this RC while stable
tsdownis0.22.14. It uses the matching stabletsdown-migrateversion when stabletsdownadvances.Resolves #2101.