Commit 0331cef
authored
feat(pack): add
## Summary
- Upgrade tsdown from `0.20.3` to `0.21.0-beta.2` for experimental Node.js SEA support
- Add `--exe` CLI option to `vp pack` for bundling as a standalone Node.js executable
- Add RFC document for the full `vp pack` command
- Add global snap tests for `--exe` success (Node.js 25.7.0) and error (Node.js < 25.5.0) cases
- Fix size replacement regex in snap test utils to handle uppercase units (MB, GB)
## Test plan
- [x] `pnpm -F vite-plus snap-test-local command-pack` — help output includes `--exe`, build/cache unchanged
- [x] `pnpm -F vite-plus snap-test-global command-pack-exe` — successful exe build with Node.js 25.7.0
- [x] `pnpm -F vite-plus snap-test-global command-pack-exe-error` — clear error on Node.js < 25.5.0
🤖 Generated with [Claude Code](https://claude.com/claude-code)--exe flag and upgrade tsdown to 0.21.0-beta.2 (#646)1 parent 5df3a55 commit 0331cef
18 files changed
Lines changed: 546 additions & 41 deletions
File tree
- packages
- cli
- snap-tests-global
- command-pack-exe-error
- src
- command-pack-exe
- src
- snap-tests
- command-helper
- command-pack
- src
- core
- tools/src
- rfcs
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments