mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-20 13:32:43 +08:00
The new public API tooling searches for nested package.json files to determine the location of secondary entrypoints. All secondary entrypoints for the CLI related packages now contain a secondary entrypoint package.json file. The internal monorepo package discovery script was also updated to support the presence of the nested package.json files.
65 lines
1.5 KiB
Python
65 lines
1.5 KiB
Python
# Copyright Google Inc. All Rights Reserved.
|
|
#
|
|
# Use of this source code is governed by an MIT-style license that can be
|
|
# found in the LICENSE file at https://angular.io/license
|
|
|
|
load("@npm//@bazel/jasmine:index.bzl", "jasmine_node_test")
|
|
load("//tools:defaults.bzl", "ts_library")
|
|
|
|
licenses(["notice"]) # MIT License
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
ts_library(
|
|
name = "node",
|
|
srcs = glob(
|
|
include = ["**/*.ts"],
|
|
exclude = [
|
|
"testing/**/*.ts",
|
|
"**/*_spec.ts",
|
|
"**/*_benchmark.ts",
|
|
],
|
|
),
|
|
data = ["package.json"],
|
|
module_name = "@angular-devkit/core/node",
|
|
module_root = "index.d.ts",
|
|
# The attribute below is needed in g3 to turn off strict typechecking
|
|
# strict_checks = False,
|
|
deps = [
|
|
"//packages/angular_devkit/core",
|
|
"@npm//@types/node",
|
|
"@npm//rxjs",
|
|
],
|
|
)
|
|
|
|
ts_library(
|
|
name = "node_test_lib",
|
|
testonly = True,
|
|
srcs = glob(
|
|
include = [
|
|
"**/*_spec.ts",
|
|
],
|
|
exclude = [
|
|
"testing/**/*.ts",
|
|
],
|
|
),
|
|
deps = [
|
|
":node",
|
|
"//packages/angular_devkit/core",
|
|
"//tests/angular_devkit/core/node/jobs:jobs_test_lib",
|
|
"@npm//rxjs",
|
|
],
|
|
)
|
|
|
|
jasmine_node_test(
|
|
name = "node_test",
|
|
srcs = [":node_test_lib"],
|
|
deps = [
|
|
"@npm//chokidar",
|
|
"@npm//temp",
|
|
# @node_module: ajv
|
|
# @node_module: fast_json_stable_stringify
|
|
# @node_module: magic_string
|
|
],
|
|
)
|