message: build(bazel): fix bazel built es5 ngfactory with secondary entry-point angular imports
  PR Close
diff: @@ -211,7 +211,8 @@ function main(args: string[]): number {
  const entryPointName = entryPointPackageName.substr(rootPackageName.length + 1);
  if (!entryPointName) return;
  - createMetadataReexportFile(entryPointName, modulesManifest[entryPointPackageName]['metadata']);
  + createMetadataReexportFile(
  + entryPointName, modulesManifest[entryPointPackageName]['metadata'], entryPointPackageName);
  createTypingsReexportFile(
  entryPointName, licenseBanner, modulesManifest[entryPointPackageName]['typings']);
  @@ -318,7 +319,8 @@ function main(args: string[]): number {
  }
  /** Creates metadata re-export file for a secondary entry-point. */
  - function createMetadataReexportFile(entryPointName: string, metadataFile: string) {
  + function createMetadataReexportFile(
  + entryPointName: string, metadataFile: string, packageName: string) {
  const inputPath = path.join(srcDir, `${entryPointName}.metadata.json`);
  writeFileFromInputPath(inputPath, JSON.stringify({
  '__symbolic': 'module',
  @@ -327,6 +329,7 @@ function main(args: string[]): number {
  'exports':
  [{'from': `${srcDirRelative(inputPath, metadataFile.replace(/.metadata.json$/, ''))}`}],
  'flatModuleIndexRedirect': true,
  + 'importAs': packageName
  }) + '\n');
  }
  