refactor(bazel): update api-extractor to account for @bazel/typescript change (#45431)

`@bazel/typescript` code moved to `@bazel/concatjs` for the tsc-wrapped code.

Note that this code is likely going to be removed anyway soon when we
move dts bundling from `ng_module` to `ng_package`.

PR Close #45431
This commit is contained in:
Paul Gschwendtner
2022-03-22 19:08:14 +01:00
committed by Dylan Hunn
parent c56f05c4bf
commit ffa331b130
2 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ ts_library(
"index.ts",
],
deps = [
"@npm//@bazel/typescript",
"@npm//@bazel/concatjs",
"@npm//@microsoft/api-extractor",
"@npm//@types/node",
],
@@ -20,7 +20,7 @@ nodejs_binary(
name = "api_extractor",
data = [
":lib",
"@npm//@bazel/typescript",
"@npm//@bazel/concatjs",
"@npm//@microsoft/api-extractor",
],
entry_point = ":index.ts",
+3 -1
View File
@@ -9,7 +9,9 @@
/// <reference types="node"/>
/// <reference lib="es2017"/>
import {format, parseTsconfig} from '@bazel/typescript';
// `tsc-wrapped` helpers are not exposed in the primary `@bazel/concatjs` entry-point.
// TODO: Update when https://github.com/bazelbuild/rules_nodejs/pull/3286 is available.
import {format, parseTsconfig} from '@bazel/concatjs/internal/tsc_wrapped';
import {Extractor, ExtractorConfig, IConfigFile, IExtractorConfigPrepareOptions, IExtractorInvokeOptions} from '@microsoft/api-extractor';
import * as fs from 'fs';
import * as path from 'path';