mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
committed by
Dylan Hunn
parent
c56f05c4bf
commit
ffa331b130
@@ -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",
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user