message: fix(bazel): fix the output directory for extractor to be genfiles/ instead of bin/
  PR Close
diff: @@ -50,7 +50,7 @@ def _expected_outs(ctx, label):
  declaration_files += [ctx.new_file(ctx.bin_dir, basename + ext) for ext in declarations]
  summary_files += [ctx.new_file(ctx.bin_dir, basename + ext) for ext in summaries]
  - i18n_messages_files = [ctx.new_file(ctx.bin_dir, ctx.label.name + "_ngc_messages.xmb")]
  + i18n_messages_files = [ctx.new_file(ctx.genfiles_dir, ctx.label.name + "_ngc_messages.xmb")]
  return struct(
  closure_js = closure_js_files,
  @@ -144,7 +144,10 @@ def ngc_compile_action(ctx, label, inputs, outputs, messages_out, config_file_pa
  executable = ctx.executable._ng_xi18n,
  arguments = (_EXTRA_NODE_OPTIONS_FLAGS +
  [config_file_path] +
  - [messages_out[0].short_path]),
  + # The base path is bin_dir because of the way the ngc
  + # compiler host is configured. So we need to explictily
  + # point to genfiles/ to redirect the output.
  + ["../genfiles/" + messages_out[0].short_path]),
  progress_message = "Extracting Angular 2 messages (ng_xi18n)",
  mnemonic = "Angular2MessageExtractor")
  