You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you want to delete a directory other than the currently specified directory or node_modules itself, you have no choice but to rely on the rimraf or rm command.
Also, in the case of a monorepo configuration using pnpm workspace, .nuxt, node_modules, and .output may not be deleted properly.
Changing rootDir option for each directory is a very tedious task.
Therefore, I would like to add an argument to the cleanup command that allows the user to delete arbitrary directories and files.
📚 Describe the feature
The cleanup command currently deletes the following directories/files ( https://github.com/nuxt/cli/blob/main/src/utils/nuxt.ts#L18-L30 ) .
buildDir
.output
dist
node_modules/.vite
If you want to delete a directory other than the currently specified directory or
node_modules
itself, you have no choice but to rely on therimraf
orrm
command.I prepare an npm script like below every time.
Also, in the case of a monorepo configuration using pnpm workspace,
.nuxt
,node_modules
, and.output
may not be deleted properly.Changing
rootDir
option for each directory is a very tedious task.Therefore, I would like to add an argument to the
cleanup
command that allows the user to delete arbitrary directories and files.Design
An example of usage is as follows.
The text was updated successfully, but these errors were encountered: