bootstrap method

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

Run Melos bootstrap to install dependencies

context - The Mason hook context workspacePath - Path to the workspace directory

Implementation

Future<void> bootstrap({
  required HookContext context,
  required String workspacePath,
}) =>
    trackOperation(
      context,
      startMessage: 'Running melos bootstrap',
      endMessage: 'Dependencies installed successfully',
      operation: () => Process.run(
        'melos',
        ['bootstrap'],
        workingDirectory: workspacePath,
        runInShell: true,
      ),
    );