clean method
Clean Melos workspace
context
- The Mason hook context
workspacePath
- Path to the workspace directory
Implementation
Future<void> clean({
required HookContext context,
required String workspacePath,
}) =>
trackOperation(
context,
startMessage: 'Cleaning Melos workspace',
endMessage: 'Workspace cleaned successfully',
operation: () => Process.run(
'melos',
['clean'],
workingDirectory: workspacePath,
runInShell: true,
),
);