build: rename //:root_modules to //:node_modules.

This is necessary as `rules_js` requires this "common name" when dealing
with Yarn workspaces, linking first party dependencies automatically.

In the future, we may be able to send a PR to `rules_js` to support a
custom name somehow.
This commit is contained in:
Paul Gschwendtner 2025-01-14 12:33:46 +00:00
parent 92c7674604
commit 4fee94a96c
35 changed files with 342 additions and 344 deletions

View File

@ -22,16 +22,14 @@ exports_files([
"package.json",
])
npm_link_all_packages(
name = "root_modules",
)
npm_link_all_packages()
rules_js_tsconfig(
name = "build-tsconfig",
src = "tsconfig-build.json",
deps = [
"tsconfig.json",
"//:root_modules/@types/node",
"//:node_modules/@types/node",
],
)
@ -48,8 +46,8 @@ rules_js_tsconfig(
src = "tsconfig-test.json",
deps = [
"tsconfig.json",
"//:root_modules/@types/jasmine",
"//:root_modules/@types/node",
"//:node_modules/@types/jasmine",
"//:node_modules/@types/node",
],
)

View File

@ -16,7 +16,7 @@ ts_project(
),
data = glob(["projects/**/*"]),
deps = [
"//:root_modules/rxjs",
"//:node_modules/rxjs",
"//packages/angular_devkit/architect:architect_rjs",
"//packages/angular_devkit/architect/node:node_rjs",
"//packages/angular_devkit/architect/testing:testing_rjs",

View File

@ -61,49 +61,49 @@ ts_project(
data = RUNTIME_ASSETS,
module_name = "@angular/build",
deps = [
"//:root_modules/@ampproject/remapping",
"//:root_modules/@angular/common",
"//:root_modules/@angular/compiler",
"//:root_modules/@angular/compiler-cli",
"//:root_modules/@angular/core",
"//:root_modules/@angular/localize",
"//:root_modules/@angular/platform-server",
"//:root_modules/@angular/service-worker",
"//:root_modules/@babel/core",
"//:root_modules/@babel/helper-annotate-as-pure",
"//:root_modules/@babel/helper-split-export-declaration",
"//:root_modules/@babel/plugin-syntax-import-attributes",
"//:root_modules/@inquirer/confirm",
"//:root_modules/@types/babel__core",
"//:root_modules/@types/less",
"//:root_modules/@types/node",
"//:root_modules/@types/picomatch",
"//:root_modules/@types/semver",
"//:root_modules/@types/watchpack",
"//:root_modules/@vitejs/plugin-basic-ssl",
"//:root_modules/beasties",
"//:root_modules/browserslist",
"//:root_modules/esbuild",
"//:root_modules/esbuild-wasm",
"//:root_modules/fast-glob",
"//:root_modules/https-proxy-agent",
"//:root_modules/jsonc-parser",
"//:root_modules/listr2",
"//:root_modules/lmdb",
"//:root_modules/magic-string",
"//:root_modules/mrmime",
"//:root_modules/ng-packagr",
"//:root_modules/parse5-html-rewriting-stream",
"//:root_modules/picomatch",
"//:root_modules/piscina",
"//:root_modules/postcss",
"//:root_modules/rollup",
"//:root_modules/sass",
"//:root_modules/semver",
"//:root_modules/tslib",
"//:root_modules/typescript",
"//:root_modules/vite",
"//:root_modules/watchpack",
"//:node_modules/@ampproject/remapping",
"//:node_modules/@angular/common",
"//:node_modules/@angular/compiler",
"//:node_modules/@angular/compiler-cli",
"//:node_modules/@angular/core",
"//:node_modules/@angular/localize",
"//:node_modules/@angular/platform-server",
"//:node_modules/@angular/service-worker",
"//:node_modules/@babel/core",
"//:node_modules/@babel/helper-annotate-as-pure",
"//:node_modules/@babel/helper-split-export-declaration",
"//:node_modules/@babel/plugin-syntax-import-attributes",
"//:node_modules/@inquirer/confirm",
"//:node_modules/@types/babel__core",
"//:node_modules/@types/less",
"//:node_modules/@types/node",
"//:node_modules/@types/picomatch",
"//:node_modules/@types/semver",
"//:node_modules/@types/watchpack",
"//:node_modules/@vitejs/plugin-basic-ssl",
"//:node_modules/beasties",
"//:node_modules/browserslist",
"//:node_modules/esbuild",
"//:node_modules/esbuild-wasm",
"//:node_modules/fast-glob",
"//:node_modules/https-proxy-agent",
"//:node_modules/jsonc-parser",
"//:node_modules/listr2",
"//:node_modules/lmdb",
"//:node_modules/magic-string",
"//:node_modules/mrmime",
"//:node_modules/ng-packagr",
"//:node_modules/parse5-html-rewriting-stream",
"//:node_modules/picomatch",
"//:node_modules/piscina",
"//:node_modules/postcss",
"//:node_modules/rollup",
"//:node_modules/sass",
"//:node_modules/semver",
"//:node_modules/tslib",
"//:node_modules/typescript",
"//:node_modules/vite",
"//:node_modules/watchpack",
"//packages/angular/ssr:ssr_rjs",
"//packages/angular/ssr/node:node_rjs",
"//packages/angular_devkit/architect:architect_rjs",
@ -119,11 +119,11 @@ ts_project(
),
deps = [
":build_rjs",
"//:root_modules/@angular/compiler-cli",
"//:root_modules/@babel/core",
"//:root_modules/@types/jasmine",
"//:root_modules/prettier",
"//:root_modules/typescript",
"//:node_modules/@angular/compiler-cli",
"//:node_modules/@babel/core",
"//:node_modules/@types/jasmine",
"//:node_modules/prettier",
"//:node_modules/typescript",
"//packages/angular/build/private:private_rjs",
"//packages/angular_devkit/core:core_rjs",
"//packages/angular_devkit/core/node:node_rjs",
@ -150,18 +150,18 @@ ts_project(
"//packages/angular_devkit/core/node:node_rjs",
# Base dependencies for the application in hello-world-app.
"//:root_modules/@angular/common",
"//:root_modules/@angular/compiler",
"//:root_modules/@angular/compiler-cli",
"//:root_modules/@angular/core",
"//:root_modules/@angular/platform-browser",
"//:root_modules/@angular/platform-browser-dynamic",
"//:root_modules/@angular/router",
"//:root_modules/rxjs",
"//:root_modules/tslib",
"//:root_modules/typescript",
"//:root_modules/zone.js",
"//:root_modules/buffer",
"//:node_modules/@angular/common",
"//:node_modules/@angular/compiler",
"//:node_modules/@angular/compiler-cli",
"//:node_modules/@angular/core",
"//:node_modules/@angular/platform-browser",
"//:node_modules/@angular/platform-browser-dynamic",
"//:node_modules/@angular/router",
"//:node_modules/rxjs",
"//:node_modules/tslib",
"//:node_modules/typescript",
"//:node_modules/zone.js",
"//:node_modules/buffer",
],
)
@ -180,24 +180,24 @@ ts_project(
"//packages/angular_devkit/core/node:node_rjs",
# dev server only test deps
"//:root_modules/@types/http-proxy",
"//:root_modules/http-proxy",
"//:root_modules/puppeteer",
"//:node_modules/@types/http-proxy",
"//:node_modules/http-proxy",
"//:node_modules/puppeteer",
# Base dependencies for the application in hello-world-app.
"//:root_modules/@angular/common",
"//:root_modules/@angular/compiler",
"//:root_modules/@angular/compiler-cli",
"//:root_modules/@angular/core",
"//:root_modules/@angular/platform-browser",
"//:root_modules/@angular/platform-browser-dynamic",
"//:root_modules/@angular/router",
"//:root_modules/ng-packagr",
"//:root_modules/rxjs",
"//:root_modules/tslib",
"//:root_modules/typescript",
"//:root_modules/zone.js",
"//:root_modules/buffer",
"//:node_modules/@angular/common",
"//:node_modules/@angular/compiler",
"//:node_modules/@angular/compiler-cli",
"//:node_modules/@angular/core",
"//:node_modules/@angular/platform-browser",
"//:node_modules/@angular/platform-browser-dynamic",
"//:node_modules/@angular/router",
"//:node_modules/ng-packagr",
"//:node_modules/rxjs",
"//:node_modules/tslib",
"//:node_modules/typescript",
"//:node_modules/zone.js",
"//:node_modules/buffer",
],
)

View File

@ -43,26 +43,26 @@ ts_project(
data = RUNTIME_ASSETS,
module_name = "@angular/cli",
deps = [
"//:root_modules/@angular/core",
"//:root_modules/@inquirer/prompts",
"//:root_modules/@listr2/prompt-adapter-inquirer",
"//:root_modules/@types/ini",
"//:root_modules/@types/node",
"//:root_modules/@types/npm-package-arg",
"//:root_modules/@types/pacote",
"//:root_modules/@types/resolve",
"//:root_modules/@types/semver",
"//:root_modules/@types/yargs",
"//:root_modules/@types/yarnpkg__lockfile",
"//:root_modules/@yarnpkg/lockfile",
"//:root_modules/ini",
"//:root_modules/jsonc-parser",
"//:root_modules/listr2",
"//:root_modules/npm-package-arg",
"//:root_modules/npm-pick-manifest",
"//:root_modules/pacote",
"//:root_modules/semver",
"//:root_modules/yargs",
"//:node_modules/@angular/core",
"//:node_modules/@inquirer/prompts",
"//:node_modules/@listr2/prompt-adapter-inquirer",
"//:node_modules/@types/ini",
"//:node_modules/@types/node",
"//:node_modules/@types/npm-package-arg",
"//:node_modules/@types/pacote",
"//:node_modules/@types/resolve",
"//:node_modules/@types/semver",
"//:node_modules/@types/yargs",
"//:node_modules/@types/yarnpkg__lockfile",
"//:node_modules/@yarnpkg/lockfile",
"//:node_modules/ini",
"//:node_modules/jsonc-parser",
"//:node_modules/listr2",
"//:node_modules/npm-package-arg",
"//:node_modules/npm-pick-manifest",
"//:node_modules/pacote",
"//:node_modules/semver",
"//:node_modules/yargs",
"//packages/angular_devkit/architect:architect_rjs",
"//packages/angular_devkit/architect/node:node_rjs",
"//packages/angular_devkit/core:core_rjs",
@ -140,8 +140,8 @@ ts_project(
),
deps = [
":angular-cli_rjs",
"//:root_modules/@types/semver",
"//:root_modules/@types/yargs",
"//:node_modules/@types/semver",
"//:node_modules/@types/yargs",
"//packages/angular_devkit/core:core_rjs",
"//packages/angular_devkit/schematics:schematics_rjs",
"//packages/angular_devkit/schematics/testing:testing_rjs",

View File

@ -24,7 +24,7 @@ ts_project(
data = RUNTIME_ASSETS,
module_name = "@angular/create",
deps = [
"//:root_modules/@types/node",
"//:node_modules/@types/node",
"//packages/angular/cli:angular-cli",
],
)

View File

@ -32,8 +32,8 @@ ts_project(
data = RUNTIME_ASSETS,
module_name = "@angular/pwa",
deps = [
"//:root_modules/@types/node",
"//:root_modules/parse5-html-rewriting-stream",
"//:node_modules/@types/node",
"//:node_modules/parse5-html-rewriting-stream",
"//packages/angular_devkit/schematics:schematics_rjs",
"//packages/schematics/angular:angular_rjs",
],
@ -50,7 +50,7 @@ ts_project(
srcs = glob(["pwa/**/*_spec.ts"]),
deps = [
":pwa_rjs",
"//:root_modules/@types/jasmine",
"//:node_modules/@types/jasmine",
"//packages/angular_devkit/schematics/testing:testing_rjs",
],
)

View File

@ -27,11 +27,11 @@ ts_project(
source_map = True,
tsconfig = "//:build-tsconfig-angular",
deps = [
"//:root_modules/@angular/common",
"//:root_modules/@angular/core",
"//:root_modules/@angular/platform-server",
"//:root_modules/@angular/router",
"//:root_modules/tslib",
"//:node_modules/@angular/common",
"//:node_modules/@angular/core",
"//:node_modules/@angular/platform-server",
"//:node_modules/@angular/router",
"//:node_modules/tslib",
"//packages/angular/ssr/third_party/beasties:beasties_dts",
],
)

View File

@ -18,9 +18,9 @@ ts_project(
source_map = True,
tsconfig = "//:build-tsconfig-angular",
deps = [
"//:root_modules/@angular/core",
"//:root_modules/@angular/platform-server",
"//:root_modules/@types/node",
"//:node_modules/@angular/core",
"//:node_modules/@angular/platform-server",
"//:node_modules/@types/node",
"//packages/angular/ssr:ssr_rjs",
],
)

View File

@ -9,12 +9,12 @@ ts_project(
include = ["**/*.ts"],
),
deps = [
"//:root_modules/@angular/common",
"//:root_modules/@angular/compiler",
"//:root_modules/@angular/core",
"//:root_modules/@angular/platform-browser",
"//:root_modules/@angular/platform-server",
"//:root_modules/@angular/router",
"//:node_modules/@angular/common",
"//:node_modules/@angular/compiler",
"//:node_modules/@angular/core",
"//:node_modules/@angular/platform-browser",
"//:node_modules/@angular/platform-server",
"//:node_modules/@angular/router",
"//packages/angular/ssr:ssr_rjs",
],
)

View File

@ -8,7 +8,7 @@ ts_project(
testonly = True,
srcs = glob(["**/*.ts"]),
deps = [
"//:root_modules/@bazel/runfiles",
"//:node_modules/@bazel/runfiles",
],
)

View File

@ -9,7 +9,7 @@ js_library(
"index.d.ts",
],
deps = [
"//:root_modules/beasties",
"//:node_modules/beasties",
],
)
@ -19,7 +19,7 @@ js_library(
":bundled_beasties_files",
],
deps = [
"//:root_modules/beasties",
"//:node_modules/beasties",
],
)

View File

@ -66,8 +66,8 @@ ts_project(
data = JSON_FILES,
module_name = "@angular-devkit/architect",
deps = [
"//:root_modules/@types/node",
"//:root_modules/rxjs",
"//:node_modules/@types/node",
"//:node_modules/rxjs",
"//packages/angular_devkit/core:core_rjs",
"//packages/angular_devkit/core/node:node_rjs",
],
@ -79,8 +79,8 @@ ts_project(
srcs = glob(["src/**/*_spec.ts"]),
deps = [
":architect_rjs",
"//:root_modules/@types/jasmine",
"//:root_modules/rxjs",
"//:node_modules/@types/jasmine",
"//:node_modules/rxjs",
"//packages/angular_devkit/architect/testing:testing_rjs",
"//packages/angular_devkit/core:core_rjs",
],

View File

@ -18,8 +18,8 @@ ts_project(
),
module_name = "@angular-devkit/architect/node",
deps = [
"//:root_modules/@types/node",
"//:root_modules/rxjs",
"//:node_modules/@types/node",
"//:node_modules/rxjs",
"//packages/angular_devkit/architect:architect_rjs",
"//packages/angular_devkit/core:core_rjs",
"//packages/angular_devkit/core/node:node_rjs",
@ -36,8 +36,8 @@ ts_project(
),
deps = [
":node_rjs",
"//:root_modules/@types/jasmine",
"//:root_modules/rxjs",
"//:node_modules/@types/jasmine",
"//:node_modules/rxjs",
"//packages/angular_devkit/architect:architect_rjs",
"//tests/angular_devkit/architect/node/jobs:jobs_test_lib_rjs",
],

View File

@ -17,8 +17,8 @@ ts_project(
),
module_name = "@angular-devkit/architect/testing",
deps = [
"//:root_modules/@types/node",
"//:root_modules/rxjs",
"//:node_modules/@types/node",
"//:node_modules/rxjs",
"//packages/angular_devkit/architect:architect_rjs",
"//packages/angular_devkit/core:core_rjs",
"//packages/angular_devkit/core/node:node_rjs",

View File

@ -15,10 +15,10 @@ ts_project(
] + glob(["src/**/*.ts"]),
module_name = "@angular-devkit/architect-cli",
deps = [
"//:root_modules/@types/node",
"//:root_modules/@types/progress",
"//:root_modules/@types/yargs-parser",
"//:root_modules/ansi-colors",
"//:node_modules/@types/node",
"//:node_modules/@types/progress",
"//:node_modules/@types/yargs-parser",
"//:node_modules/ansi-colors",
"//packages/angular_devkit/architect:architect_rjs",
"//packages/angular_devkit/architect/node:node_rjs",
"//packages/angular_devkit/core:core_rjs",

View File

@ -122,77 +122,77 @@ ts_project(
data = RUNTIME_ASSETS,
module_name = "@angular-devkit/build-angular",
deps = [
"//:root_modules/@ampproject/remapping",
"//:root_modules/@angular/common",
"//:root_modules/@angular/compiler-cli",
"//:root_modules/@angular/core",
"//:root_modules/@angular/localize",
"//:root_modules/@angular/platform-server",
"//:root_modules/@angular/service-worker",
"//:root_modules/@babel/core",
"//:root_modules/@babel/generator",
"//:root_modules/@babel/helper-annotate-as-pure",
"//:root_modules/@babel/helper-split-export-declaration",
"//:root_modules/@babel/plugin-transform-async-generator-functions",
"//:root_modules/@babel/plugin-transform-async-to-generator",
"//:root_modules/@babel/plugin-transform-runtime",
"//:root_modules/@babel/preset-env",
"//:root_modules/@babel/runtime",
"//:root_modules/@discoveryjs/json-ext",
"//:root_modules/@types/babel__core",
"//:root_modules/@types/babel__generator",
"//:root_modules/@types/browser-sync",
"//:root_modules/@types/karma",
"//:root_modules/@types/less",
"//:root_modules/@types/loader-utils",
"//:root_modules/@types/node",
"//:root_modules/@types/picomatch",
"//:root_modules/@types/semver",
"//:root_modules/@types/watchpack",
"//:root_modules/@vitejs/plugin-basic-ssl",
"//:root_modules/@web/test-runner",
"//:root_modules/ajv",
"//:root_modules/ansi-colors",
"//:root_modules/autoprefixer",
"//:root_modules/babel-loader",
"//:root_modules/browserslist",
"//:root_modules/copy-webpack-plugin",
"//:root_modules/css-loader",
"//:root_modules/esbuild",
"//:root_modules/esbuild-wasm",
"//:root_modules/fast-glob",
"//:root_modules/http-proxy-middleware",
"//:root_modules/istanbul-lib-instrument",
"//:root_modules/jsonc-parser",
"//:root_modules/karma",
"//:root_modules/karma-source-map-support",
"//:root_modules/less",
"//:root_modules/less-loader",
"//:root_modules/license-webpack-plugin",
"//:root_modules/loader-utils",
"//:root_modules/mini-css-extract-plugin",
"//:root_modules/ng-packagr",
"//:root_modules/open",
"//:root_modules/ora",
"//:root_modules/piscina",
"//:root_modules/postcss",
"//:root_modules/postcss-loader",
"//:root_modules/resolve-url-loader",
"//:root_modules/rxjs",
"//:root_modules/sass",
"//:root_modules/sass-loader",
"//:root_modules/semver",
"//:root_modules/source-map-loader",
"//:root_modules/source-map-support",
"//:root_modules/terser",
"//:root_modules/tree-kill",
"//:root_modules/tslib",
"//:root_modules/typescript",
"//:root_modules/webpack",
"//:root_modules/webpack-dev-middleware",
"//:root_modules/webpack-dev-server",
"//:root_modules/webpack-merge",
"//:root_modules/webpack-subresource-integrity",
"//:node_modules/@ampproject/remapping",
"//:node_modules/@angular/common",
"//:node_modules/@angular/compiler-cli",
"//:node_modules/@angular/core",
"//:node_modules/@angular/localize",
"//:node_modules/@angular/platform-server",
"//:node_modules/@angular/service-worker",
"//:node_modules/@babel/core",
"//:node_modules/@babel/generator",
"//:node_modules/@babel/helper-annotate-as-pure",
"//:node_modules/@babel/helper-split-export-declaration",
"//:node_modules/@babel/plugin-transform-async-generator-functions",
"//:node_modules/@babel/plugin-transform-async-to-generator",
"//:node_modules/@babel/plugin-transform-runtime",
"//:node_modules/@babel/preset-env",
"//:node_modules/@babel/runtime",
"//:node_modules/@discoveryjs/json-ext",
"//:node_modules/@types/babel__core",
"//:node_modules/@types/babel__generator",
"//:node_modules/@types/browser-sync",
"//:node_modules/@types/karma",
"//:node_modules/@types/less",
"//:node_modules/@types/loader-utils",
"//:node_modules/@types/node",
"//:node_modules/@types/picomatch",
"//:node_modules/@types/semver",
"//:node_modules/@types/watchpack",
"//:node_modules/@vitejs/plugin-basic-ssl",
"//:node_modules/@web/test-runner",
"//:node_modules/ajv",
"//:node_modules/ansi-colors",
"//:node_modules/autoprefixer",
"//:node_modules/babel-loader",
"//:node_modules/browserslist",
"//:node_modules/copy-webpack-plugin",
"//:node_modules/css-loader",
"//:node_modules/esbuild",
"//:node_modules/esbuild-wasm",
"//:node_modules/fast-glob",
"//:node_modules/http-proxy-middleware",
"//:node_modules/istanbul-lib-instrument",
"//:node_modules/jsonc-parser",
"//:node_modules/karma",
"//:node_modules/karma-source-map-support",
"//:node_modules/less",
"//:node_modules/less-loader",
"//:node_modules/license-webpack-plugin",
"//:node_modules/loader-utils",
"//:node_modules/mini-css-extract-plugin",
"//:node_modules/ng-packagr",
"//:node_modules/open",
"//:node_modules/ora",
"//:node_modules/piscina",
"//:node_modules/postcss",
"//:node_modules/postcss-loader",
"//:node_modules/resolve-url-loader",
"//:node_modules/rxjs",
"//:node_modules/sass",
"//:node_modules/sass-loader",
"//:node_modules/semver",
"//:node_modules/source-map-loader",
"//:node_modules/source-map-support",
"//:node_modules/terser",
"//:node_modules/tree-kill",
"//:node_modules/tslib",
"//:node_modules/typescript",
"//:node_modules/webpack",
"//:node_modules/webpack-dev-middleware",
"//:node_modules/webpack-dev-server",
"//:node_modules/webpack-merge",
"//:node_modules/webpack-subresource-integrity",
"//packages/angular/build:build_rjs",
"//packages/angular/build/private:private_rjs",
"//packages/angular/ssr:ssr_rjs",
@ -219,10 +219,10 @@ ts_project(
deps = [
":build_angular_rjs",
":build_angular_test_utils_rjs",
"//:root_modules/fast-glob",
"//:root_modules/prettier",
"//:root_modules/typescript",
"//:root_modules/webpack",
"//:node_modules/fast-glob",
"//:node_modules/prettier",
"//:node_modules/typescript",
"//:node_modules/webpack",
"//packages/angular_devkit/architect/testing:testing_rjs",
"//packages/angular_devkit/core:core_rjs",
],
@ -287,7 +287,7 @@ ts_project(
data = glob(["test/**/*"]),
deps = [
":build_angular_rjs",
"//:root_modules/@types/jasmine",
"//:node_modules/@types/jasmine",
"//modules/testing/builder:builder_rjs",
"//packages/angular/build:build_rjs",
"//packages/angular/build/private:private_rjs",
@ -308,10 +308,10 @@ LARGE_SPECS = {
"flaky": True,
"extra_deps": [
"//packages/angular_devkit/build_webpack:build_webpack_rjs",
"//:root_modules/@types/http-proxy",
"//:root_modules/http-proxy",
"//:root_modules/puppeteer",
"//:root_modules/undici",
"//:node_modules/@types/http-proxy",
"//:node_modules/http-proxy",
"//:node_modules/puppeteer",
"//:node_modules/undici",
],
},
"extract-i18n": {},
@ -320,21 +320,21 @@ LARGE_SPECS = {
"size": "large",
"flaky": True,
"extra_deps": [
"//:root_modules/karma",
"//:root_modules/karma-chrome-launcher",
"//:root_modules/karma-coverage",
"//:root_modules/karma-jasmine",
"//:root_modules/karma-jasmine-html-reporter",
"//:root_modules/puppeteer",
"//:root_modules/webpack",
"//:node_modules/karma",
"//:node_modules/karma-chrome-launcher",
"//:node_modules/karma-coverage",
"//:node_modules/karma-jasmine",
"//:node_modules/karma-jasmine-html-reporter",
"//:node_modules/puppeteer",
"//:node_modules/webpack",
],
},
"protractor": {
"extra_deps": [
"//:root_modules/jasmine-spec-reporter",
"//:root_modules/protractor",
"//:root_modules/puppeteer",
"//:root_modules/ts-node",
"//:node_modules/jasmine-spec-reporter",
"//:node_modules/protractor",
"//:node_modules/puppeteer",
"//:node_modules/ts-node",
],
# NB: does not run on rbe because webdriver manager uses an absolute path to chromedriver
"tags": ["no-remote-exec"],
@ -344,7 +344,7 @@ LARGE_SPECS = {
"server": {
"size": "large",
"extra_deps": [
"//:root_modules/@angular/animations",
"//:node_modules/@angular/animations",
],
},
"ng-packagr": {},
@ -353,8 +353,8 @@ LARGE_SPECS = {
"size": "large",
"flaky": True,
"extra_deps": [
"//:root_modules/@angular/animations",
"//:root_modules/@angular/material",
"//:node_modules/@angular/animations",
"//:node_modules/@angular/material",
],
},
"prerender": {},
@ -362,10 +362,10 @@ LARGE_SPECS = {
"ssr-dev-server": {
"extra_deps": [
"//packages/angular/ssr/node:node_rjs",
"//:root_modules/@types/browser-sync",
"//:root_modules/browser-sync",
"//:root_modules/express",
"//:root_modules/undici",
"//:node_modules/@types/browser-sync",
"//:node_modules/browser-sync",
"//:node_modules/express",
"//:node_modules/undici",
],
},
}
@ -390,18 +390,18 @@ LARGE_SPECS = {
# Base dependencies for the application in hello-world-app.
# Some tests also require extra dependencies.
"//:root_modules/@angular/common",
"//:root_modules/@angular/compiler",
"//:root_modules/@angular/compiler-cli",
"//:root_modules/@angular/core",
"//:root_modules/@angular/platform-browser",
"//:root_modules/@angular/platform-browser-dynamic",
"//:root_modules/@angular/router",
"//:root_modules/rxjs",
"//:root_modules/tslib",
"//:root_modules/typescript",
"//:root_modules/zone.js",
"//:root_modules/@types/jasmine",
"//:node_modules/@angular/common",
"//:node_modules/@angular/compiler",
"//:node_modules/@angular/compiler-cli",
"//:node_modules/@angular/core",
"//:node_modules/@angular/platform-browser",
"//:node_modules/@angular/platform-browser-dynamic",
"//:node_modules/@angular/router",
"//:node_modules/rxjs",
"//:node_modules/tslib",
"//:node_modules/typescript",
"//:node_modules/zone.js",
"//:node_modules/@types/jasmine",
] + LARGE_SPECS[spec].get("extra_deps", []),
)
for spec in LARGE_SPECS

View File

@ -45,10 +45,10 @@ ts_project(
data = RUNTIME_ASSETS,
module_name = "@angular-devkit/build-webpack",
deps = [
"//:root_modules/@types/node",
"//:root_modules/rxjs",
"//:root_modules/webpack",
"//:root_modules/webpack-dev-server",
"//:node_modules/@types/node",
"//:node_modules/rxjs",
"//:node_modules/webpack",
"//:node_modules/webpack-dev-server",
"//packages/angular_devkit/architect:architect_rjs",
],
)
@ -68,7 +68,7 @@ ts_project(
),
deps = [
":build_webpack_rjs",
"//:root_modules/@types/jasmine",
"//:node_modules/@types/jasmine",
"//packages/angular_devkit/architect:architect_rjs",
"//packages/angular_devkit/architect/node:node_rjs",
"//packages/angular_devkit/architect/testing:testing_rjs",
@ -82,14 +82,14 @@ jasmine_node_test(
name = "build_webpack_test",
srcs = [":build_webpack_test_lib"],
data = [
"//:root_modules/@angular/common",
"//:root_modules/@angular/compiler",
"//:root_modules/@angular/compiler-cli",
"//:root_modules/@angular/core",
"//:root_modules/@angular/platform-browser",
"//:root_modules/@angular/platform-browser-dynamic",
"//:root_modules/tslib",
"//:root_modules/zone.js",
"//:node_modules/@angular/common",
"//:node_modules/@angular/compiler",
"//:node_modules/@angular/compiler-cli",
"//:node_modules/@angular/core",
"//:node_modules/@angular/platform-browser",
"//:node_modules/@angular/platform-browser-dynamic",
"//:node_modules/tslib",
"//:node_modules/zone.js",
],
)

View File

@ -30,15 +30,15 @@ ts_project(
data = RUNTIME_ASSETS,
module_name = "@angular-devkit/core",
deps = [
"//:root_modules/@types/node",
"//:root_modules/@types/picomatch",
"//:root_modules/@types/jasmine",
"//:root_modules/ajv",
"//:root_modules/ajv-formats",
"//:root_modules/jsonc-parser",
"//:root_modules/picomatch",
"//:root_modules/rxjs",
"//:root_modules/source-map",
"//:node_modules/@types/node",
"//:node_modules/@types/picomatch",
"//:node_modules/@types/jasmine",
"//:node_modules/ajv",
"//:node_modules/ajv-formats",
"//:node_modules/jsonc-parser",
"//:node_modules/picomatch",
"//:node_modules/rxjs",
"//:node_modules/source-map",
# @node_module: typescript:es2015.proxy
# @node_module: typescript:es2015.reflect
# @node_module: typescript:es2015.symbol.wellknown
@ -55,7 +55,7 @@ ts_project(
data = glob(["src/workspace/json/test/**/*.json"]),
deps = [
":core_rjs",
"//:root_modules/rxjs",
"//:node_modules/rxjs",
"//packages/angular_devkit/core/node:node_rjs",
],
)

View File

@ -21,9 +21,9 @@ ts_project(
),
module_name = "@angular-devkit/core/node",
deps = [
"//:root_modules/@types/node",
"//:root_modules/chokidar",
"//:root_modules/rxjs",
"//:node_modules/@types/node",
"//:node_modules/chokidar",
"//:node_modules/rxjs",
"//packages/angular_devkit/core:core_rjs",
],
)
@ -43,8 +43,8 @@ ts_project(
),
deps = [
":node_rjs",
"//:root_modules/@types/jasmine",
"//:root_modules/rxjs",
"//:node_modules/@types/jasmine",
"//:node_modules/rxjs",
"//packages/angular_devkit/core:core_rjs",
],
)

View File

@ -18,9 +18,9 @@ ts_project(
),
module_name = "@angular-devkit/core/node/testing",
deps = [
"//:root_modules/@types/jasmine",
"//:root_modules/@types/node",
"//:root_modules/rxjs",
"//:node_modules/@types/jasmine",
"//:node_modules/@types/node",
"//:node_modules/rxjs",
"//packages/angular_devkit/core:core_rjs",
"//packages/angular_devkit/core/node:node_rjs",
],

View File

@ -25,10 +25,10 @@ ts_project(
],
module_name = "@angular-devkit/schematics",
deps = [
"//:root_modules/@types/node",
"//:root_modules/jsonc-parser",
"//:root_modules/magic-string",
"//:root_modules/rxjs",
"//:node_modules/@types/node",
"//:node_modules/jsonc-parser",
"//:node_modules/magic-string",
"//:node_modules/rxjs",
"//packages/angular_devkit/core:core_rjs",
"//packages/angular_devkit/core/node:node_rjs", # TODO: get rid of this for 6.0
],
@ -40,8 +40,8 @@ ts_project(
srcs = glob(["src/**/*_spec.ts"]),
deps = [
":schematics",
"//:root_modules/@types/jasmine",
"//:root_modules/rxjs",
"//:node_modules/@types/jasmine",
"//:node_modules/rxjs",
"//packages/angular_devkit/core:core_rjs",
"//packages/angular_devkit/core/node:node_rjs",
"//packages/angular_devkit/schematics/testing:testing_rjs",

View File

@ -20,9 +20,9 @@ ts_project(
data = ["package.json"],
module_name = "@angular-devkit/schematics/tasks",
deps = [
"//:root_modules/@types/node",
"//:root_modules/ora",
"//:root_modules/rxjs",
"//:node_modules/@types/node",
"//:node_modules/ora",
"//:node_modules/rxjs",
"//packages/angular_devkit/core:core_rjs",
"//packages/angular_devkit/core/node:node_rjs",
"//packages/angular_devkit/schematics:schematics_rjs",

View File

@ -18,8 +18,8 @@ ts_project(
),
module_name = "@angular-devkit/schematics/tasks/node",
deps = [
"//:root_modules/@types/node",
"//:root_modules/rxjs",
"//:node_modules/@types/node",
"//:node_modules/rxjs",
"//packages/angular_devkit/core:core_rjs",
"//packages/angular_devkit/core/node:node_rjs",
"//packages/angular_devkit/schematics:schematics_rjs",

View File

@ -16,7 +16,7 @@ ts_project(
data = ["package.json"],
module_name = "@angular-devkit/schematics/testing",
deps = [
"//:root_modules/rxjs",
"//:node_modules/rxjs",
"//packages/angular_devkit/core:core_rjs",
"//packages/angular_devkit/schematics:schematics_rjs",
"//packages/angular_devkit/schematics/tasks/node:node_rjs",

View File

@ -21,9 +21,9 @@ ts_project(
data = ["package.json"],
module_name = "@angular-devkit/schematics/tools",
deps = [
"//:root_modules/@types/node",
"//:root_modules/jsonc-parser",
"//:root_modules/rxjs",
"//:node_modules/@types/node",
"//:node_modules/jsonc-parser",
"//:node_modules/rxjs",
"//packages/angular_devkit/core:core_rjs",
"//packages/angular_devkit/core/node:node_rjs",
"//packages/angular_devkit/schematics:schematics_rjs",
@ -43,8 +43,8 @@ ts_project(
),
deps = [
":tools_rjs",
"//:root_modules/@types/jasmine",
"//:root_modules/rxjs",
"//:node_modules/@types/jasmine",
"//:node_modules/rxjs",
"//packages/angular_devkit/core:core_rjs",
"//packages/angular_devkit/core/node:node_rjs",
"//packages/angular_devkit/schematics:schematics_rjs",

View File

@ -44,12 +44,12 @@ ts_project(
data = RUNTIME_ASSETS,
module_name = "@angular-devkit/schematics-cli",
deps = [
"//:root_modules/@inquirer/prompts",
"//:root_modules/@types/node",
"//:root_modules/@types/yargs-parser",
"//:root_modules/ansi-colors",
"//:root_modules/symbol-observable",
"//:root_modules/yargs-parser",
"//:node_modules/@inquirer/prompts",
"//:node_modules/@types/node",
"//:node_modules/@types/yargs-parser",
"//:node_modules/ansi-colors",
"//:node_modules/symbol-observable",
"//:node_modules/yargs-parser",
"//packages/angular_devkit/core:core_rjs",
"//packages/angular_devkit/core/node:node_rjs",
"//packages/angular_devkit/schematics:schematics_rjs",

View File

@ -29,10 +29,10 @@ ts_project(
],
module_name = "@ngtools/webpack",
deps = [
"//:root_modules/@angular/compiler-cli",
"//:root_modules/@types/node",
"//:root_modules/typescript",
"//:root_modules/webpack",
"//:node_modules/@angular/compiler-cli",
"//:node_modules/@types/node",
"//:node_modules/typescript",
"//:node_modules/webpack",
],
)
@ -47,9 +47,9 @@ ts_project(
),
deps = [
":webpack_rjs",
"//:root_modules/@angular/compiler",
"//:root_modules/@types/jasmine",
"//:root_modules/typescript",
"//:node_modules/@angular/compiler",
"//:node_modules/@types/jasmine",
"//:node_modules/typescript",
"//packages/angular_devkit/core:core_rjs",
],
)

View File

@ -81,10 +81,10 @@ ts_project(
data = RUNTIME_ASSETS,
module_name = "@schematics/angular",
deps = [
"//:root_modules/@inquirer/prompts",
"//:root_modules/@types/node",
"//:root_modules/browserslist",
"//:root_modules/jsonc-parser",
"//:node_modules/@inquirer/prompts",
"//:node_modules/@types/node",
"//:node_modules/browserslist",
"//:node_modules/jsonc-parser",
"//packages/angular_devkit/core:core_rjs",
"//packages/angular_devkit/schematics:schematics_rjs",
"//packages/angular_devkit/schematics/tasks:tasks_rjs",
@ -97,7 +97,7 @@ jasmine_node_test(
srcs = ["no_typescript_runtime_dep_spec.js"],
deps = [
":angular",
"//:root_modules/@types/jasmine",
"//:node_modules/@types/jasmine",
],
)
@ -116,8 +116,8 @@ ts_project(
),
deps = [
":angular_rjs",
"//:root_modules/@types/jasmine",
"//:root_modules/jsonc-parser",
"//:node_modules/@types/jasmine",
"//:node_modules/jsonc-parser",
"//packages/angular_devkit/core:core_rjs",
"//packages/angular_devkit/core/node/testing:testing_rjs",
"//packages/angular_devkit/schematics:schematics_rjs",

View File

@ -16,7 +16,7 @@ ts_project(
],
),
deps = [
"//:root_modules/@types/node",
"//:node_modules/@types/node",
"//packages/angular_devkit/architect:architect_rjs",
],
)

View File

@ -22,8 +22,8 @@ ts_project(
],
),
deps = [
"//:root_modules/@types/jasmine",
"//:root_modules/@types/node",
"//:node_modules/@types/jasmine",
"//:node_modules/@types/node",
"//packages/angular_devkit/schematics:schematics_rjs",
],
)

View File

@ -12,8 +12,8 @@ ts_project(
"verdaccio_auth.yaml",
],
deps = [
"//:root_modules/ansi-colors",
"//:root_modules/fast-glob",
"//:node_modules/ansi-colors",
"//:node_modules/fast-glob",
"//packages/angular_devkit/core:core_rjs",
"//packages/angular_devkit/core/node:node_rjs",
"//tests/legacy-cli/e2e/utils:utils_rjs",

View File

@ -10,11 +10,11 @@ ts_project(
"//tests/legacy-cli/e2e/ng-snapshot",
],
deps = [
"//:root_modules/@types/express",
"//:root_modules/@types/semver",
"//:root_modules/express",
"//:root_modules/fast-glob",
"//:root_modules/semver",
"//:node_modules/@types/express",
"//:node_modules/@types/semver",
"//:node_modules/express",
"//:node_modules/fast-glob",
"//:node_modules/semver",
"//tests/legacy-cli/e2e/utils:utils_rjs",
],
)

View File

@ -10,17 +10,17 @@ ts_project(
"//tests/legacy-cli/e2e/ng-snapshot",
],
deps = [
"//:root_modules/@types/jasmine",
"//:root_modules/@types/semver",
"//:root_modules/ansi-colors",
"//:root_modules/fast-glob",
"//:root_modules/npm",
"//:root_modules/protractor",
"//:root_modules/rxjs",
"//:root_modules/semver",
"//:root_modules/tar",
"//:root_modules/tree-kill",
"//:root_modules/verdaccio",
"//:root_modules/verdaccio-auth-memory",
"//:node_modules/@types/jasmine",
"//:node_modules/@types/semver",
"//:node_modules/ansi-colors",
"//:node_modules/fast-glob",
"//:node_modules/npm",
"//:node_modules/protractor",
"//:node_modules/rxjs",
"//:node_modules/semver",
"//:node_modules/tar",
"//:node_modules/tree-kill",
"//:node_modules/verdaccio",
"//:node_modules/verdaccio-auth-memory",
],
)

View File

@ -56,8 +56,8 @@ js_binary(
name = "vanilla_ts_worker",
data = [
":copy_worker_js",
"//:root_modules/@angular/compiler-cli",
"//:root_modules/typescript",
"//:node_modules/@angular/compiler-cli",
"//:node_modules/typescript",
],
entry_point = ":copy_worker_js",
fixed_args = ["--vanilla-ts"],

View File

@ -107,8 +107,8 @@ def ts_project(name, module_name = None, deps = [], tsconfig = None, testonly =
# execution, with regards to first-party dependency linking.
rjs_modules_to_rnjs = []
for d in deps:
if d.startswith("//:root_modules/"):
rjs_modules_to_rnjs.append(d.replace("//:root_modules/", "@npm//"))
if d.startswith("//:node_modules/"):
rjs_modules_to_rnjs.append(d.replace("//:node_modules/", "@npm//"))
if d.endswith("_rjs"):
rjs_modules_to_rnjs.append(d.replace("_rjs", ""))