clean method

Future<void> clean({
  1. required HookContext context,
  2. required String workspacePath,
})

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,
      ),
    );