fix(dev-infra): correct build setup for dev-infra (#38815)
Correct's the missing dependencies and incorrect build dependencies for the dev-infra bazel targets. PR Close #38815
This commit is contained in:
parent
57c442f930
commit
6768fe9927
|
@ -2,25 +2,20 @@ load("@npm_bazel_typescript//:index.bzl", "ts_library")
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "caretaker",
|
name = "caretaker",
|
||||||
srcs = [
|
srcs = glob([
|
||||||
"cli.ts",
|
"**/*.ts",
|
||||||
],
|
]),
|
||||||
module_name = "@angular/dev-infra-private/caretaker",
|
module_name = "@angular/dev-infra-private/caretaker",
|
||||||
visibility = ["//dev-infra:__subpackages__"],
|
visibility = ["//dev-infra:__subpackages__"],
|
||||||
deps = [
|
deps = [
|
||||||
"//dev-infra/caretaker/check",
|
"//dev-infra/utils",
|
||||||
|
"@npm//@types/node",
|
||||||
|
"@npm//@types/node-fetch",
|
||||||
"@npm//@types/yargs",
|
"@npm//@types/yargs",
|
||||||
|
"@npm//multimatch",
|
||||||
|
"@npm//node-fetch",
|
||||||
|
"@npm//typed-graphqlify",
|
||||||
|
"@npm//yaml",
|
||||||
"@npm//yargs",
|
"@npm//yargs",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
ts_library(
|
|
||||||
name = "config",
|
|
||||||
srcs = [
|
|
||||||
"config.ts",
|
|
||||||
],
|
|
||||||
visibility = ["//dev-infra:__subpackages__"],
|
|
||||||
deps = [
|
|
||||||
"//dev-infra/utils",
|
|
||||||
],
|
|
||||||
)
|
|
||||||
|
|
|
@ -1,21 +0,0 @@
|
||||||
load("@npm_bazel_typescript//:index.bzl", "ts_library")
|
|
||||||
|
|
||||||
ts_library(
|
|
||||||
name = "check",
|
|
||||||
srcs = glob(["*.ts"]),
|
|
||||||
module_name = "@angular/dev-infra-private/caretaker/service-statuses",
|
|
||||||
visibility = ["//dev-infra:__subpackages__"],
|
|
||||||
deps = [
|
|
||||||
"//dev-infra/caretaker:config",
|
|
||||||
"//dev-infra/utils",
|
|
||||||
"@npm//@types/fs-extra",
|
|
||||||
"@npm//@types/node",
|
|
||||||
"@npm//@types/node-fetch",
|
|
||||||
"@npm//@types/yargs",
|
|
||||||
"@npm//multimatch",
|
|
||||||
"@npm//node-fetch",
|
|
||||||
"@npm//typed-graphqlify",
|
|
||||||
"@npm//yaml",
|
|
||||||
"@npm//yargs",
|
|
||||||
],
|
|
||||||
)
|
|
|
@ -6,7 +6,7 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* found in the LICENSE file at https://angular.io/license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {existsSync, readFileSync} from 'fs-extra';
|
import {existsSync, readFileSync} from 'fs';
|
||||||
import * as multimatch from 'multimatch';
|
import * as multimatch from 'multimatch';
|
||||||
import {join} from 'path';
|
import {join} from 'path';
|
||||||
import {parse as parseYaml} from 'yaml';
|
import {parse as parseYaml} from 'yaml';
|
||||||
|
|
|
@ -3,6 +3,7 @@ load("@npm_bazel_typescript//:index.bzl", "ts_library")
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "common",
|
name = "common",
|
||||||
srcs = glob(["*.ts"]),
|
srcs = glob(["*.ts"]),
|
||||||
|
module_name = "@angular/dev-infra-private/pr/common",
|
||||||
visibility = ["//dev-infra:__subpackages__"],
|
visibility = ["//dev-infra:__subpackages__"],
|
||||||
deps = [
|
deps = [
|
||||||
"//dev-infra/utils",
|
"//dev-infra/utils",
|
||||||
|
|
|
@ -12,11 +12,13 @@
|
||||||
"@angular/benchpress": "0.2.1",
|
"@angular/benchpress": "0.2.1",
|
||||||
"@octokit/graphql": "<from-root>",
|
"@octokit/graphql": "<from-root>",
|
||||||
"@octokit/types": "<from-root>",
|
"@octokit/types": "<from-root>",
|
||||||
|
"@octokit/rest": "<from-root>",
|
||||||
"brotli": "<from-root>",
|
"brotli": "<from-root>",
|
||||||
"chalk": "<from-root>",
|
"chalk": "<from-root>",
|
||||||
"cli-progress": "<from-root>",
|
"cli-progress": "<from-root>",
|
||||||
"glob": "<from-root>",
|
"glob": "<from-root>",
|
||||||
"inquirer": "<from-root>",
|
"inquirer": "<from-root>",
|
||||||
|
"inquirer-autocomplete-prompt": "<from-root>",
|
||||||
"minimatch": "<from-root>",
|
"minimatch": "<from-root>",
|
||||||
"multimatch": "<from-root>",
|
"multimatch": "<from-root>",
|
||||||
"node-fetch": "<from-root>",
|
"node-fetch": "<from-root>",
|
||||||
|
@ -26,9 +28,7 @@
|
||||||
"tslib": "<from-root>",
|
"tslib": "<from-root>",
|
||||||
"typed-graphqlify": "<from-root>",
|
"typed-graphqlify": "<from-root>",
|
||||||
"yaml": "<from-root>",
|
"yaml": "<from-root>",
|
||||||
"yargs": "<from-root>"
|
"yargs": "<from-root>",
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"@bazel/buildifier": "<from-root>",
|
"@bazel/buildifier": "<from-root>",
|
||||||
"clang-format": "<from-root>",
|
"clang-format": "<from-root>",
|
||||||
"protractor": "<from-root>",
|
"protractor": "<from-root>",
|
||||||
|
|
|
@ -12,13 +12,11 @@ ts_library(
|
||||||
"@npm//@octokit/graphql",
|
"@npm//@octokit/graphql",
|
||||||
"@npm//@octokit/rest",
|
"@npm//@octokit/rest",
|
||||||
"@npm//@octokit/types",
|
"@npm//@octokit/types",
|
||||||
"@npm//@types/fs-extra",
|
|
||||||
"@npm//@types/inquirer",
|
"@npm//@types/inquirer",
|
||||||
"@npm//@types/node",
|
"@npm//@types/node",
|
||||||
"@npm//@types/shelljs",
|
"@npm//@types/shelljs",
|
||||||
"@npm//@types/yargs",
|
"@npm//@types/yargs",
|
||||||
"@npm//chalk",
|
"@npm//chalk",
|
||||||
"@npm//fs-extra",
|
|
||||||
"@npm//inquirer",
|
"@npm//inquirer",
|
||||||
"@npm//inquirer-autocomplete-prompt",
|
"@npm//inquirer-autocomplete-prompt",
|
||||||
"@npm//shelljs",
|
"@npm//shelljs",
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import chalk from 'chalk';
|
import chalk from 'chalk';
|
||||||
import {writeFileSync} from 'fs-extra';
|
import {writeFileSync} from 'fs';
|
||||||
import {createPromptModule, ListChoiceOptions, prompt} from 'inquirer';
|
import {createPromptModule, ListChoiceOptions, prompt} from 'inquirer';
|
||||||
import * as inquirerAutocomplete from 'inquirer-autocomplete-prompt';
|
import * as inquirerAutocomplete from 'inquirer-autocomplete-prompt';
|
||||||
import {join} from 'path';
|
import {join} from 'path';
|
||||||
|
|
Loading…
Reference in New Issue