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