Skip to content

Commit 737b683

Browse files
committed
refactor(bazel): update ngc-wrapped to account for tsc-wrapped move to @bazel/concatjs
Previously `tsc-wrapped` which is the foundation for `ngc-wrapped`, resided in `@bazel/typescript`. It has been moved to `@bazel/concatjs` in rules_nodejs so we need to account for that as part of our rules_nodejs v5 update.
1 parent 3a7abe3 commit 737b683

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

packages/bazel/src/ngc-wrapped/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ts_library(
1717
deps = [
1818
"//packages/compiler-cli",
1919
"//packages/compiler-cli/private",
20-
"@npm//@bazel/typescript",
20+
"@npm//@bazel/concatjs",
2121
"@npm//@types/node",
2222
"@npm//tsickle",
2323
"@npm//typescript",

packages/bazel/src/ngc-wrapped/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9+
// `tsc-wrapped` helpers are not exposed in the primary `@bazel/concatjs` entry-point.
10+
// TODO: Update when https://github.com/bazelbuild/rules_nodejs/pull/3286 is available.
11+
import {BazelOptions, CachedFileLoader, CompilerHost, constructManifest, debug, FileCache, FileLoader, parseTsconfig, resolveNormalizedPath, runAsWorker, runWorkerLoop, UncachedFileLoader} from '@bazel/concatjs/internal/tsc_wrapped';
12+
913
import type {AngularCompilerOptions, CompilerHost as NgCompilerHost, TsEmitCallback, Program, CompilerOptions} from '@angular/compiler-cli';
10-
import {BazelOptions, CachedFileLoader, CompilerHost, constructManifest, debug, FileCache, FileLoader, parseTsconfig, resolveNormalizedPath, runAsWorker, runWorkerLoop, UncachedFileLoader} from '@bazel/typescript';
1114
import * as fs from 'fs';
1215
import * as path from 'path';
1316
import * as tsickle from 'tsickle';

0 commit comments

Comments
 (0)