def METHOD_NAME(args):
  parser = argparse.ArgumentParser(
      description=__doc__,
      formatter_class=argparse.RawDescriptionHelpFormatter)
  parser.add_argument(
      '--force',
      '-f',
      help='Force building the library even if no files have changed.',
      action='store_true')
  parsed_args = parser.parse_args(args)
  # Make the dist/ folder, ignore errors.
  base = shakaBuildHelpers.get_source_base()
  try:
    os.mkdir(os.path.join(base, 'dist'))
  except OSError:
    pass
  force = parsed_args.force
  # Update node modules if needed.
  if not shakaBuildHelpers.update_node_modules():
    return 1
  for is_debug in [True, False]:
    if not build_all(force, is_debug):
      return 1
  return 0