getPuroStandaloneBinPath function

Directory getPuroStandaloneBinPath({
  1. bool createIfNotExists = false,
})

Returns the puro standalone bin path. It may not exist.

Implementation

Directory getPuroStandaloneBinPath({bool createIfNotExists = false}) {
  final path = Directory(
    "${SidekickContext.sidekickPackage.buildDir.absolute.path}/puro/bin/",
  );
  if (createIfNotExists && !path.existsSync()) {
    path.createSync(recursive: true);
  }
  return path;
}