Commit e94c94e
Normalize paths in bundle-ui-step same-path guard
The same-path guard at bundle-ui-step.ts compared `localOutputDir` and
`bundleOutputDir` as raw strings. In practice these two values are
computed along different code paths (`dirname(buildUIExtension())` vs
`dirname(extension.outputPath)` or `joinPath(..., bundleFolder)`) and
can resolve to the same filesystem directory while differing as strings
— e.g. when one path has a `.` segment, a trailing slash, or otherwise
non-canonical shape. When that happens, the guard slips through and
fs-extra rejects the copy with "Source and destination must not be the
same".
Normalize both sides via `resolvePath` before comparing so the guard
catches any string variant that maps to the same directory.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 243750a commit e94c94e
2 files changed
Lines changed: 7 additions & 2 deletions
File tree
- .changeset
- packages/app/src/cli/services/build/steps
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
0 commit comments