Skip to content

Commit c2b1c15

Browse files
Boshenclaudefengmk2
authored
chore: rename rolldown-vite directory to vite (#1024)
## Summary - Rename the `rolldown-vite` gitignored directory (upstream vitejs/vite checkout) to just `vite` - Rename `brand-rolldown-vite.ts` → `brand-vite.ts` and update exported function name - Rename `ROLLDOWN_VITE_DIR` constant → `VITE_DIR` in sync-remote-deps and brand-vite - Update all references across config files, CI workflows, source code, docs, and snap test fixtures - The `rolldown-vite` npm package name in pnpm-workspace.yaml catalog is unchanged (it's a package name, not a directory) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: MK (fengmk2) <fengmk2@gmail.com>
1 parent ae51ac5 commit c2b1c15

27 files changed

Lines changed: 129 additions & 130 deletions

.github/actions/build-upstream/action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ runs:
4343
target/${{ inputs.target }}/release/vp-shim.exe
4444
key: ${{ steps.cache-key.outputs.key }}
4545

46-
# Apply Vite+ branding patches to rolldown-vite source (CI checks out
47-
# upstream rolldown-vite which doesn't have branding patches)
48-
- name: Brand rolldown-vite
46+
# Apply Vite+ branding patches to vite source (CI checks out
47+
# upstream vite which doesn't have branding patches)
48+
- name: Brand vite
4949
shell: bash
50-
run: pnpm exec tool brand-rolldown-vite
50+
run: pnpm exec tool brand-vite
5151

5252
# Build upstream TypeScript packages first (don't depend on native bindings)
5353
- name: Build upstream TypeScript packages

.github/actions/clone/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ outputs:
1515
runs:
1616
using: 'composite'
1717
steps:
18-
- name: Output rolldown and rolldown-vite hash
18+
- name: Output rolldown and vite hash
1919
shell: bash
2020
id: upstream-versions
2121
run: |
2222
node -e "console.log('ROLLDOWN_HASH=' + require('./packages/tools/.upstream-versions.json').rolldown.hash)" >> $GITHUB_OUTPUT
23-
node -e "console.log('ROLLDOWN_VITE_HASH=' + require('./packages/tools/.upstream-versions.json')['rolldown-vite'].hash)" >> $GITHUB_OUTPUT
23+
node -e "console.log('ROLLDOWN_VITE_HASH=' + require('./packages/tools/.upstream-versions.json')['vite'].hash)" >> $GITHUB_OUTPUT
2424
2525
- name: Output ecosystem ci project hash
2626
shell: bash
@@ -40,7 +40,7 @@ runs:
4040
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
4141
with:
4242
repository: vitejs/vite
43-
path: rolldown-vite
43+
path: vite
4444
ref: ${{ steps.upstream-versions.outputs.ROLLDOWN_VITE_HASH }}
4545

4646
# Disable autocrlf to preserve LF line endings on Windows

.github/renovate.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"packages/cli/snap-tests-todo/**",
88
"bench/fixtures/**",
99
"rolldown/**",
10-
"rolldown-vite/**"
10+
"vite/**"
1111
],
1212
"packageRules": [
1313
{

.github/scripts/upgrade-deps.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ async function updateUpstreamVersions() {
4848
// rolldown -> rolldown/rolldown
4949
data.rolldown.hash = await getLatestTagCommit('rolldown', 'rolldown');
5050

51-
// rolldown-vite -> vitejs/vite
52-
data['rolldown-vite'].hash = await getLatestTagCommit('vitejs', 'vite');
51+
// vite -> vitejs/vite
52+
data['vite'].hash = await getLatestTagCommit('vitejs', 'vite');
5353

5454
fs.writeFileSync(filePath, JSON.stringify(data, null, 2) + '\n');
5555
console.log('Updated .upstream-versions.json');

.github/workflows/upgrade-deps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ jobs:
142142
body: |
143143
Automated daily upgrade of upstream dependencies:
144144
- rolldown (latest tag)
145-
- rolldown-vite (latest tag)
145+
- vite (latest tag)
146146
- vitest (latest npm version)
147147
- tsdown (latest npm version)
148148

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ dist
66
.DS_Store
77
rolldown
88
rolldown-vite
9+
vite
910
/crates/vite_global_cli/vp

packages/cli/BUNDLING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ The CLI package creates thin shim files that re-export from `@voidzero-dev/vite-
286286
3. **Reduces duplication** - No file copying, just re-exports
287287
4. **Preserves module resolution** - Node.js resolves to the actual core package
288288

289-
**Note**: The `@voidzero-dev/vite-plus-core` package itself bundles multiple upstream projects (rolldown-vite, rolldown, tsdown, vitepress). See [Core Package Bundling](../core/BUNDLING.md) for details.
289+
**Note**: The `@voidzero-dev/vite-plus-core` package itself bundles multiple upstream projects (vite, rolldown, tsdown, vitepress). See [Core Package Bundling](../core/BUNDLING.md) for details.
290290

291291
### Export Mapping (Core)
292292

packages/cli/snap-tests-global/migration-monorepo-pnpm-overrides-dependency-selector/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
"pnpm": {
1212
"overrides": {
1313
"react-click-away-listener>react": "0.0.0-experimental-7dc903cd-20251203",
14-
"vite": "npm:rolldown-vite@7.0.12",
15-
"vite-plugin-inspect>vite": "npm:rolldown-vite@7.0.12",
16-
"vite-plugin-svgr>foo>vite": "npm:rolldown-vite@7.0.12",
17-
"@vitejs/plugin-react>vite": "npm:rolldown-vite@7.0.12",
18-
"@vitejs/plugin-react-swc>vite": "npm:rolldown-vite@7.0.12",
14+
"vite": "npm:vite@7.0.12",
15+
"vite-plugin-inspect>vite": "npm:vite@7.0.12",
16+
"vite-plugin-svgr>foo>vite": "npm:vite@7.0.12",
17+
"@vitejs/plugin-react>vite": "npm:vite@7.0.12",
18+
"@vitejs/plugin-react-swc>vite": "npm:vite@7.0.12",
1919
"supertest>superagent": "9.0.2"
2020
}
2121
}

packages/cli/snap-tests-global/migration-monorepo-pnpm-overrides-dependency-selector/pnpm-workspace.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ packages:
22
- packages/*
33

44
catalog:
5-
vite: 'npm:rolldown-vite@7.0.12'
5+
vite: 'npm:vite@7.0.12'
66

77
overrides:
8-
'vite-plugin-svgr>vite': 'npm:rolldown-vite@7.0.12'
9-
'@vitejs/plugin-react>vite': 'npm:rolldown-vite@7.0.12'
10-
'vite-plugin-svgr>foo>vite': 'npm:rolldown-vite@7.0.12'
8+
'vite-plugin-svgr>vite': 'npm:vite@7.0.12'
9+
'@vitejs/plugin-react>vite': 'npm:vite@7.0.12'
10+
'vite-plugin-svgr>foo>vite': 'npm:vite@7.0.12'
1111
'supertest>superagent': '9.0.2'

packages/cli/snap-tests-global/migration-monorepo-pnpm-overrides-dependency-selector/snap.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ catalog:
4848
vite-plus: latest
4949

5050
overrides:
51-
'@vitejs/plugin-react>vite': 'npm:rolldown-vite@<semver>'
51+
'@vitejs/plugin-react>vite': 'npm:vite@<semver>'
5252
'supertest>superagent': '9.0.2'
5353
vite: 'catalog:'
5454
vitest: 'catalog:'

0 commit comments

Comments
 (0)