clean method
Implementation
Future<void> clean({GlobalOptions? global, PackageFilter? filter}) async {
final workspace = await createWorkspace(global: global, filter: filter);
return _runLifecycle(
workspace,
ScriptLifecycle.clean,
() async {
logger.log('Cleaning workspace...');
/// Cleans the workspace of all files generated by Melos.
cleanWorkspace(workspace);
await Future.wait(workspace.filteredPackages.values.map(_cleanPackage));
await cleanIntelliJ(workspace);
logger
..newLine()
..log(
'Workspace cleaned. You will need to run the bootstrap command '
'again to use this workspace.',
);
},
);
}