nuxt / cli

⚡️ Nuxt Generation CLI Experience.
https://github.com/nuxt/cli/discussions/3
MIT License
271 stars 66 forks source link

Nuxi Cleanup does not seem to clear Nuxt files in v4 #533

Open rylanharper opened 1 month ago

rylanharper commented 1 month ago

Environment

Nuxt project info:                                                                                                                              

------------------------------
- Operating System: Linux
- Node Version:     v18.20.3
- Nuxt Version:     3.13.2
- CLI Version:      3.14.0
- Nitro Version:    2.9.7
- Package Manager:  npm@10.2.3
- Builder:          -
- User Config:      -
- Runtime Modules:  -
- Build Modules:    -
------------------------------

Reproduction

https://stackblitz.com/edit/nuxt-starter-tqwwsx

Describe the bug

Hey Nuxt Team!

I recently upgraded some projects that to Nuxt4 using compatibilityVersion: 4. Everything works great, but I notice that npx nuxi cleanup does not clear any Nuxt files (like the .nuxt file) when running this command.

Perhaps I am doing this wrong, but even in a minimal v4 environment like the example above, the cleanup command does not seem to work properly.

Additional context

After further testing, the node_modules cache data clears correctly. However, the .nuxt file does not.

Logs

No response

stackblitz[bot] commented 1 month ago

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.