@@ -60,20 +60,33 @@ index 99d7f6d..3ea60ea 100755
6060 ))
6161
6262 return ts_providers_dict_to_struct(ts_providers)
63+ diff --git a/node_modules/@angular/bazel/src/ng_package/packager.mjs b/node_modules/@angular/bazel/src/ng_package/packager.mjs
64+ index 12d5f0c..8868e27 100755
65+ --- a/node_modules/@angular/bazel/src/ng_package/packager.mjs
66+ +++ b/node_modules/@angular/bazel/src/ng_package/packager.mjs
67+ @@ -7,7 +7,7 @@
68+ */
69+ import * as fs from 'fs';
70+ import * as path from 'path';
71+ - import { analyzeFileAndEnsureNoCrossImports } from './cross_entry_points_imports';
72+ + import { analyzeFileAndEnsureNoCrossImports } from './cross_entry_points_imports.mjs';
73+ /**
74+ * List of known `package.json` fields which provide information about
75+ * supported package formats and their associated entry paths.
6376diff --git a/node_modules/@angular/bazel/src/ngc-wrapped/index.mjs b/node_modules/@angular/bazel/src/ngc-wrapped/index.mjs
64- index 8681a4c..e3b497a 100755
77+ index 09deff8..00d24be 100755
6578--- a/node_modules/@angular/bazel/src/ngc-wrapped/index.mjs
6679+++ b/node_modules/@angular/bazel/src/ngc-wrapped/index.mjs
67- @@ -13,7 +13,7 @@ import * as fs from 'fs';
80+ @@ -12,7 +12,7 @@ import tscw from '@bazel/concatjs/internal/tsc_wrapped/index.js';
81+ import * as fs from 'fs';
6882 import * as path from 'path';
69- import * as tsickle from 'tsickle';
7083 import ts from 'typescript';
7184- import { EXT, patchNgHostWithFileNameToModuleName as patchNgHost, relativeToRootDirs } from './utils';
7285+ import { EXT, patchNgHostWithFileNameToModuleName as patchNgHost, relativeToRootDirs } from './utils.mjs';
7386 // FIXME: we should be able to add the assets to the tsconfig so FileLoader
7487 // knows about them
7588 const NGC_ASSETS = /\.(css|html)$/;
76- @@ -351 ,6 +351 ,12 @@ function gatherDiagnosticsForInputsOnly(options, bazelOpts, ngProgram) {
89+ @@ -348 ,6 +348 ,12 @@ function gatherDiagnosticsForInputsOnly(options, bazelOpts, ngProgram) {
7790 }
7891 return diagnostics;
7992 }
@@ -87,7 +100,7 @@ index 8681a4c..e3b497a 100755
87100 * @deprecated
88101 * Kept here just for compatibility with 1P tools. To be removed soon after 1P update.
89102diff --git a/node_modules/@angular/bazel/src/ngc-wrapped/ngc-wrapped-main.mjs b/node_modules/@angular/bazel/src/ngc-wrapped/ngc-wrapped-main.mjs
90- index 3649c11..0f4af3c 100755
103+ index ccf82d2..daaa783 100755
91104--- a/node_modules/@angular/bazel/src/ngc-wrapped/ngc-wrapped-main.mjs
92105+++ b/node_modules/@angular/bazel/src/ngc-wrapped/ngc-wrapped-main.mjs
93106@@ -5,7 +5,7 @@
@@ -96,6 +109,6 @@ index 3649c11..0f4af3c 100755
96109 */
97110- import { main } from './index';
98111+ import { main } from './index.mjs';
99- main(process.argv.slice(2)).then(exitCode => process.exitCode = exitCode).catch(e => {
100- console.error(e);
101- process.exitCode = 1;
112+ main(process.argv.slice(2))
113+ .then((exitCode) => (process.exitCode = exitCode))
114+ .catch((e) => {
0 commit comments