adobe / adobe/aio-cli

app dist needs to be cleaned after a workspace switch `aio app use`

Open
#692 1 comment 0 reactions 1 assignee Claimed by @purplecabbage View on GitHub
bug
Dominant language
JavaScript
Stars
95
Forks
45
PR merge metrics
No merged PRs in 30d

Description

### Expected Behaviour

Running `aio app use` to switch to another workspace and then `aio app run | aio app build | aio app deploy` should build and deploy in the new target.

### Actual Behaviour

```
ℹ No actions built for 'dx/excshell/1'
ℹ No frontend or a build already exists, skipping frontend build for 'dx/excshell/1'
ℹ No actions deployed for 'dx/excshell/1'
✔ Deploying web assets for 'dx/excshell/1'
```
The web assets are actually deployed, but even they are probably incorrect because they were not rebuilt for the new workspace.

### Reproduce Scenario (including but not limited to)

#### Steps to Reproduce

#### Environment Info
```
System:
OS: macOS 14.6.1
CPU: (10) arm64 Apple M1 Max
Memory: 894.55 MB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.20.4 - ~/.nvm/versions/node/v18.20.4/bin/node
Yarn: 1.22.19 - ~/.bun/bin/yarn
npm: 10.7.0 - ~/.nvm/versions/node/v18.20.4/bin/npm
Virtualization:
Docker: 20.10.17 - /usr/local/bin/docker
npmGlobalPackages:
@adobe/aio-cli: 10.3.1
```
#### Sample Code that illustrates the problem

#### Logs taken while reproducing problem

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.