diff --git a/BUILD.bazel b/BUILD.bazel
index 021a333ee9..09ebe562dd 100644
--- a/BUILD.bazel
+++ b/BUILD.bazel
@@ -16,15 +16,15 @@ filegroup(
name = "web_test_bootstrap_scripts",
# do not sort
srcs = [
- "@ngdeps//node_modules/core-js:client/core.js",
- "@ngdeps//node_modules/zone.js:dist/zone.js",
- "@ngdeps//node_modules/zone.js:dist/zone-testing.js",
- "@ngdeps//node_modules/zone.js:dist/task-tracking.js",
+ "@npm//node_modules/core-js:client/core.js",
+ "@npm//node_modules/zone.js:dist/zone.js",
+ "@npm//node_modules/zone.js:dist/zone-testing.js",
+ "@npm//node_modules/zone.js:dist/task-tracking.js",
"//:test-events.js",
"//:shims_for_IE.js",
# Including systemjs because it defines `__eval`, which produces correct stack traces.
- "@ngdeps//node_modules/systemjs:dist/system.src.js",
- "@ngdeps//node_modules/reflect-metadata:Reflect.js",
+ "@npm//node_modules/systemjs:dist/system.src.js",
+ "@npm//node_modules/reflect-metadata:Reflect.js",
],
)
@@ -33,34 +33,18 @@ filegroup(
srcs = [
# We also declare the unminfied AngularJS files since these can be used for
# local debugging (e.g. see: packages/upgrade/test/common/test_helpers.ts)
- "@ngdeps//node_modules/angular:angular.js",
- "@ngdeps//node_modules/angular:angular.min.js",
- "@ngdeps//node_modules/angular-1.5:angular.js",
- "@ngdeps//node_modules/angular-1.5:angular.min.js",
- "@ngdeps//node_modules/angular-1.6:angular.js",
- "@ngdeps//node_modules/angular-1.6:angular.min.js",
- "@ngdeps//node_modules/angular-mocks:angular-mocks.js",
- "@ngdeps//node_modules/angular-mocks-1.5:angular-mocks.js",
- "@ngdeps//node_modules/angular-mocks-1.6:angular-mocks.js",
+ "@npm//node_modules/angular:angular.js",
+ "@npm//node_modules/angular:angular.min.js",
+ "@npm//node_modules/angular-1.5:angular.js",
+ "@npm//node_modules/angular-1.5:angular.min.js",
+ "@npm//node_modules/angular-1.6:angular.js",
+ "@npm//node_modules/angular-1.6:angular.min.js",
+ "@npm//node_modules/angular-mocks:angular-mocks.js",
+ "@npm//node_modules/angular-mocks-1.5:angular-mocks.js",
+ "@npm//node_modules/angular-mocks-1.6:angular-mocks.js",
],
)
-# A nodejs_binary for @angular/bazel/ngc-wrapped to use by default in
-# ng_module that depends on @npm//@angular/bazel instead of the
-# output of the //packages/bazel/src/ngc-wrapped ts_library rule. This
-# default is for downstream users that depend on the @angular/bazel npm
-# package. The generated @npm//@angular/bazel/ngc-wrapped target
-# does not work because it does not have the node `--expose-gc` flag
-# set which is required to support the call to `global.gc()`.
-nodejs_binary(
- name = "@angular/bazel/ngc-wrapped",
- configuration_env_vars = ["compile"],
- data = ["@npm//@angular/bazel"],
- entry_point = "@angular/bazel/src/ngc-wrapped/index.js",
- install_source_map_support = False,
- templated_args = ["--node_options=--expose-gc"],
-)
-
# To run a karma_web_test target locally on SauceLabs:
# 1) have SAUCE_USERNAME, SAUCE_ACCESS_KEY (and optionally a SAUCE_TUNNEL_IDENTIFIER) set in your environment
# 2) open a sauce connection with `./scripts/saucelabs/start-tunnel.sh`
diff --git a/WORKSPACE b/WORKSPACE
index d551c641dd..2743d71434 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -15,22 +15,13 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
# Fetch rules_nodejs so we can install our npm dependencies
http_archive(
name = "build_bazel_rules_nodejs",
- sha256 = "86ea92217dfd4a84e1e335cc07dfd942b12899796b080492546b947f12c5ab77",
- urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/0.26.0-beta.0/rules_nodejs-0.26.0-beta.0.tar.gz"],
-)
-
-# Use a mock @npm repository while we are building angular from source
-# downstream. Angular will get its npm dependencies with in @ngdeps which
-# is setup in ng_setup_workspace().
-# TODO(gregmagolan): remove @ngdeps once angular is no longer build from source
-# downstream and have build use @npm for npm dependencies
-local_repository(
- name = "npm",
- path = "tools/npm_workspace",
+ sha256 = "5c86b055c57e15bf32d9009a15bcd6d8e190c41b1ff2fb18037b75e0012e4e7c",
+ urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/0.26.0/rules_nodejs-0.26.0.tar.gz"],
)
# Check the bazel version and download npm dependencies
-load("@build_bazel_rules_nodejs//:defs.bzl", "check_bazel_version", "node_repositories")
+load("@build_bazel_rules_nodejs//:defs.bzl", "check_bazel_version", "node_repositories", "yarn_install")
+load("@build_bazel_rules_nodejs//:package.bzl", "check_rules_nodejs_version")
# Bazel version must be at least v0.21.0 because:
# - 0.21.0 Using --incompatible_strict_action_env flag fixes cache when running `yarn bazel`
@@ -46,6 +37,12 @@ Try running `yarn bazel` instead.
minimum_bazel_version = "0.21.0",
)
+# The NodeJS rules version must be at least v0.15.3 because:
+# - 0.15.2 Re-introduced the prod_only attribute on yarn_install
+# - 0.15.3 Includes a fix for the `jasmine_node_test` rule ignoring target tags
+# - 0.16.8 Supports npm installed bazel workspaces
+check_rules_nodejs_version("0.16.8")
+
# Setup the Node.js toolchain
node_repositories(
node_version = "10.9.0",
@@ -54,13 +51,28 @@ node_repositories(
yarn_version = "1.12.1",
)
-# Setup the angular toolchain which installs npm dependencies into @ngdeps
-load("//tools:ng_setup_workspace.bzl", "ng_setup_workspace")
+yarn_install(
+ name = "npm",
+ data = [
+ "//:tools/npm/@angular_bazel/index.js",
+ "//:tools/npm/@angular_bazel/package.json",
+ "//:tools/postinstall-patches.js",
+ "//:tools/yarn/check-yarn.js",
+ ],
+ package_json = "//:package.json",
+ # Don't install devDependencies, they are large and not used under Bazel
+ prod_only = True,
+ yarn_lock = "//:yarn.lock",
+)
-ng_setup_workspace()
+yarn_install(
+ name = "ts-api-guardian_deps",
+ package_json = "@angular//tools/ts-api-guardian:package.json",
+ yarn_lock = "@angular//tools/ts-api-guardian:yarn.lock",
+)
-# Install all bazel dependencies of the @ngdeps npm packages
-load("@ngdeps//:install_bazel_dependencies.bzl", "install_bazel_dependencies")
+# Install all bazel dependencies of the @npm npm packages
+load("@npm//:install_bazel_dependencies.bzl", "install_bazel_dependencies")
install_bazel_dependencies()
@@ -86,7 +98,7 @@ load("@npm_bazel_karma//:browser_repositories.bzl", "browser_repositories")
browser_repositories()
# Setup the rules_typescript tooolchain
-load("@npm_bazel_typescript//:defs.bzl", "ts_setup_workspace")
+load("@npm_bazel_typescript//:index.bzl", "ts_setup_workspace")
ts_setup_workspace()
diff --git a/index.bzl b/index.bzl
deleted file mode 100644
index f5d5e80371..0000000000
--- a/index.bzl
+++ /dev/null
@@ -1,28 +0,0 @@
-# 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
-""" Public API surface is re-exported here.
-
-This API is exported for users building angular from source in downstream
-projects. The rules from packages/bazel are re-exported here as well
-as the ng_setup_workspace repository rule needed when building angular
-from source downstream. Alternately, this API is available from the
-@angular/bazel npm package if the npm distribution of angular is
-used in a downstream project.
-"""
-
-load(
- "//packages/bazel:index.bzl",
- _ng_module = "ng_module",
- _ng_package = "ng_package",
- _protractor_web_test = "protractor_web_test",
- _protractor_web_test_suite = "protractor_web_test_suite",
-)
-load("//tools:ng_setup_workspace.bzl", _ng_setup_workspace = "ng_setup_workspace")
-
-ng_module = _ng_module
-ng_package = _ng_package
-protractor_web_test = _protractor_web_test
-protractor_web_test_suite = _protractor_web_test_suite
-ng_setup_workspace = _ng_setup_workspace
diff --git a/integration/bazel/WORKSPACE b/integration/bazel/WORKSPACE
index 86c1470cac..f718d38b04 100644
--- a/integration/bazel/WORKSPACE
+++ b/integration/bazel/WORKSPACE
@@ -5,8 +5,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
# Fetch rules_nodejs so we can install our npm dependencies
http_archive(
name = "build_bazel_rules_nodejs",
- sha256 = "86ea92217dfd4a84e1e335cc07dfd942b12899796b080492546b947f12c5ab77",
- urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/0.26.0-beta.0/rules_nodejs-0.26.0-beta.0.tar.gz"],
+ sha256 = "5c86b055c57e15bf32d9009a15bcd6d8e190c41b1ff2fb18037b75e0012e4e7c",
+ urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/0.26.0/rules_nodejs-0.26.0.tar.gz"],
)
# Fetch sass rules for compiling sass files
@@ -73,7 +73,7 @@ load("@npm_bazel_karma//:browser_repositories.bzl", "browser_repositories")
browser_repositories()
# Setup the rules_typescript tooolchain
-load("@npm_bazel_typescript//:defs.bzl", "ts_setup_workspace")
+load("@npm_bazel_typescript//:index.bzl", "ts_setup_workspace")
ts_setup_workspace()
@@ -81,11 +81,3 @@ ts_setup_workspace()
load("@io_bazel_rules_sass//sass:sass_repositories.bzl", "sass_repositories")
sass_repositories()
-
-# Setup the angular toolchain. This integration test no longer builds Angular from source,
-# but we still need to set up the "angular" workspace since some Bazel rules depend on
-# the "ngdeps" repository. This can be fixed if we switched the Angular repository to the
-# "npm" repository for the bazel managed dependencies.
-load("@npm_angular_bazel//:index.bzl", "ng_setup_workspace")
-
-ng_setup_workspace()
diff --git a/integration/bazel/src/BUILD.bazel b/integration/bazel/src/BUILD.bazel
index e04abde8c5..db57258012 100644
--- a/integration/bazel/src/BUILD.bazel
+++ b/integration/bazel/src/BUILD.bazel
@@ -3,7 +3,7 @@ package(default_visibility = ["//visibility:public"])
load("@npm_angular_bazel//:index.bzl", "ng_module")
load("@build_bazel_rules_nodejs//:defs.bzl", "http_server", "rollup_bundle")
load("@build_bazel_rules_nodejs//internal/web_package:web_package.bzl", "web_package")
-load("@npm_bazel_typescript//:defs.bzl", "ts_devserver")
+load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
# Allow targets under sub-packages to reference the tsconfig.json file
exports_files(["tsconfig.json"])
diff --git a/integration/bazel/src/hello-world/BUILD.bazel b/integration/bazel/src/hello-world/BUILD.bazel
index e081522371..768cff8e41 100644
--- a/integration/bazel/src/hello-world/BUILD.bazel
+++ b/integration/bazel/src/hello-world/BUILD.bazel
@@ -1,7 +1,7 @@
package(default_visibility = ["//visibility:public"])
-load("@npm_bazel_karma//:defs.bzl", "ts_web_test_suite")
-load("@npm_bazel_typescript//:defs.bzl", "ts_library")
+load("@npm_bazel_karma//:index.bzl", "ts_web_test_suite")
+load("@npm_bazel_typescript//:index.bzl", "ts_library")
load("@io_bazel_rules_sass//sass:sass.bzl", "sass_binary")
load("@npm_angular_bazel//:index.bzl", "ng_module", "ng_package")
diff --git a/integration/bazel/src/package.json b/integration/bazel/src/package.json
index acbb72877e..9dac26fb15 100644
--- a/integration/bazel/src/package.json
+++ b/integration/bazel/src/package.json
@@ -18,7 +18,7 @@
"@angular/bazel": "packages-dist:bazel",
"@angular/compiler": "packages-dist:compiler",
"@angular/compiler-cli": "packages-dist:compiler-cli",
- "@bazel/karma": "0.26.0-beta.0",
+ "@bazel/karma": "0.26.0",
"@types/jasmine": "2.8.8",
"@types/source-map": "0.5.1",
"protractor": "5.1.2",
diff --git a/integration/bazel/test/e2e/BUILD.bazel b/integration/bazel/test/e2e/BUILD.bazel
index d41619f827..45f82c4af1 100644
--- a/integration/bazel/test/e2e/BUILD.bazel
+++ b/integration/bazel/test/e2e/BUILD.bazel
@@ -1,4 +1,4 @@
-load("@npm_bazel_typescript//:defs.bzl", "ts_library")
+load("@npm_bazel_typescript//:index.bzl", "ts_library")
load("@npm_angular_bazel//:index.bzl", "protractor_web_test_suite")
ts_library(
diff --git a/karma-js.conf.js b/karma-js.conf.js
index 4d07a2f369..3381ec2b52 100644
--- a/karma-js.conf.js
+++ b/karma-js.conf.js
@@ -111,7 +111,7 @@ module.exports = function(config) {
// don't need this entire config file.
proxies: {
'/base/angular/': '/base/',
- '/base/ngdeps/': '/base/',
+ '/base/npm/': '/base/',
},
reporters: ['dots'],
diff --git a/modules/benchmarks/benchmark_test.bzl b/modules/benchmarks/benchmark_test.bzl
index 2f068d8f2a..0948985cdc 100644
--- a/modules/benchmarks/benchmark_test.bzl
+++ b/modules/benchmarks/benchmark_test.bzl
@@ -18,7 +18,7 @@ def benchmark_test(name, server, deps, tags = []):
server = server,
tags = tags,
deps = [
- "@ngdeps//protractor",
- "@ngdeps//yargs",
+ "@npm//protractor",
+ "@npm//yargs",
] + deps,
)
diff --git a/modules/benchmarks/src/largeform/BUILD.bazel b/modules/benchmarks/src/largeform/BUILD.bazel
index 0bfbe75e36..37cf09c97d 100644
--- a/modules/benchmarks/src/largeform/BUILD.bazel
+++ b/modules/benchmarks/src/largeform/BUILD.bazel
@@ -9,7 +9,7 @@ ts_library(
tsconfig = "//modules/benchmarks:tsconfig-e2e.json",
deps = [
"//modules/e2e_util",
- "@ngdeps//@types/jasminewd2",
- "@ngdeps//protractor",
+ "@npm//@types/jasminewd2",
+ "@npm//protractor",
],
)
diff --git a/modules/benchmarks/src/largeform/ng2/BUILD.bazel b/modules/benchmarks/src/largeform/ng2/BUILD.bazel
index f1558418fa..289b6d54b5 100644
--- a/modules/benchmarks/src/largeform/ng2/BUILD.bazel
+++ b/modules/benchmarks/src/largeform/ng2/BUILD.bazel
@@ -1,5 +1,5 @@
load("//tools:defaults.bzl", "ng_module")
-load("@npm_bazel_typescript//:defs.bzl", "ts_devserver")
+load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//modules/benchmarks:benchmark_test.bzl", "benchmark_test")
package(default_visibility = ["//modules/benchmarks:__subpackages__"])
@@ -29,12 +29,12 @@ ts_devserver(
index_html = "index.html",
port = 4200,
scripts = [
- "@ngdeps//node_modules/tslib:tslib.js",
+ "@npm//node_modules/tslib:tslib.js",
"//tools/rxjs:rxjs_umd_modules",
],
static_files = [
- "@ngdeps//node_modules/zone.js:dist/zone.js",
- "@ngdeps//node_modules/reflect-metadata:Reflect.js",
+ "@npm//node_modules/zone.js:dist/zone.js",
+ "@npm//node_modules/reflect-metadata:Reflect.js",
],
tags = ["fixme-ivy-aot"],
deps = [":ng2"],
diff --git a/modules/benchmarks/src/largetable/BUILD.bazel b/modules/benchmarks/src/largetable/BUILD.bazel
index 3b2888efd0..cc00b3f5b8 100644
--- a/modules/benchmarks/src/largetable/BUILD.bazel
+++ b/modules/benchmarks/src/largetable/BUILD.bazel
@@ -14,6 +14,6 @@ ts_library(
srcs = ["largetable_perf.spec.ts"],
deps = [
"//modules/e2e_util",
- "@ngdeps//protractor",
+ "@npm//protractor",
],
)
diff --git a/modules/benchmarks/src/largetable/baseline/BUILD.bazel b/modules/benchmarks/src/largetable/baseline/BUILD.bazel
index 55519ed578..8fda5883d9 100644
--- a/modules/benchmarks/src/largetable/baseline/BUILD.bazel
+++ b/modules/benchmarks/src/largetable/baseline/BUILD.bazel
@@ -1,5 +1,5 @@
load("//tools:defaults.bzl", "ts_library")
-load("@npm_bazel_typescript//:defs.bzl", "ts_devserver")
+load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//modules/benchmarks:benchmark_test.bzl", "benchmark_test")
package(default_visibility = ["//modules/benchmarks:__subpackages__"])
diff --git a/modules/benchmarks/src/largetable/incremental_dom/BUILD.bazel b/modules/benchmarks/src/largetable/incremental_dom/BUILD.bazel
index 429b80b64e..f3459d5b44 100644
--- a/modules/benchmarks/src/largetable/incremental_dom/BUILD.bazel
+++ b/modules/benchmarks/src/largetable/incremental_dom/BUILD.bazel
@@ -1,5 +1,5 @@
load("//tools:defaults.bzl", "ts_library")
-load("@npm_bazel_typescript//:defs.bzl", "ts_devserver")
+load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//modules/benchmarks:benchmark_test.bzl", "benchmark_test")
package(default_visibility = ["//modules/benchmarks:__subpackages__"])
@@ -20,7 +20,7 @@ ts_devserver(
index_html = "index.html",
port = 4200,
static_files = [
- "@ngdeps//node_modules/incremental-dom:dist/incremental-dom.js",
+ "@npm//node_modules/incremental-dom:dist/incremental-dom.js",
],
deps = [":incremental_dom"],
)
diff --git a/modules/benchmarks/src/largetable/ng2/BUILD.bazel b/modules/benchmarks/src/largetable/ng2/BUILD.bazel
index 15b9c0ad66..bcebc73065 100644
--- a/modules/benchmarks/src/largetable/ng2/BUILD.bazel
+++ b/modules/benchmarks/src/largetable/ng2/BUILD.bazel
@@ -1,5 +1,5 @@
load("//tools:defaults.bzl", "ng_module")
-load("@npm_bazel_typescript//:defs.bzl", "ts_devserver")
+load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//modules/benchmarks:benchmark_test.bzl", "benchmark_test")
package(default_visibility = ["//modules/benchmarks:__subpackages__"])
@@ -28,12 +28,12 @@ ts_devserver(
index_html = "index.html",
port = 4200,
scripts = [
- "@ngdeps//node_modules/tslib:tslib.js",
+ "@npm//node_modules/tslib:tslib.js",
"//tools/rxjs:rxjs_umd_modules",
],
static_files = [
- "@ngdeps//node_modules/zone.js:dist/zone.js",
- "@ngdeps//node_modules/reflect-metadata:Reflect.js",
+ "@npm//node_modules/zone.js:dist/zone.js",
+ "@npm//node_modules/reflect-metadata:Reflect.js",
],
deps = [":ng2"],
)
diff --git a/modules/benchmarks/src/largetable/ng2_switch/BUILD.bazel b/modules/benchmarks/src/largetable/ng2_switch/BUILD.bazel
index b96d1444c2..07039cd3fd 100644
--- a/modules/benchmarks/src/largetable/ng2_switch/BUILD.bazel
+++ b/modules/benchmarks/src/largetable/ng2_switch/BUILD.bazel
@@ -1,5 +1,5 @@
load("//tools:defaults.bzl", "ng_module")
-load("@npm_bazel_typescript//:defs.bzl", "ts_devserver")
+load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//modules/benchmarks:benchmark_test.bzl", "benchmark_test")
package(default_visibility = ["//modules/benchmarks:__subpackages__"])
@@ -25,12 +25,12 @@ ts_devserver(
index_html = "index.html",
port = 4200,
scripts = [
- "@ngdeps//node_modules/tslib:tslib.js",
+ "@npm//node_modules/tslib:tslib.js",
"//tools/rxjs:rxjs_umd_modules",
],
static_files = [
- "@ngdeps//node_modules/zone.js:dist/zone.js",
- "@ngdeps//node_modules/reflect-metadata:Reflect.js",
+ "@npm//node_modules/zone.js:dist/zone.js",
+ "@npm//node_modules/reflect-metadata:Reflect.js",
],
deps = [":ng2_switch"],
)
diff --git a/modules/benchmarks/src/largetable/render3/BUILD.bazel b/modules/benchmarks/src/largetable/render3/BUILD.bazel
index a4ae3675cb..45fabba43a 100644
--- a/modules/benchmarks/src/largetable/render3/BUILD.bazel
+++ b/modules/benchmarks/src/largetable/render3/BUILD.bazel
@@ -1,7 +1,7 @@
package(default_visibility = ["//visibility:public"])
load("//tools:defaults.bzl", "ng_module", "ng_rollup_bundle")
-load("@npm_bazel_typescript//:defs.bzl", "ts_devserver")
+load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//modules/benchmarks:benchmark_test.bzl", "benchmark_test")
ng_module(
@@ -14,7 +14,7 @@ ng_module(
"//packages:types",
"//packages/common",
"//packages/core",
- "@ngdeps//reflect-metadata",
+ "@npm//reflect-metadata",
],
)
@@ -24,7 +24,7 @@ ng_rollup_bundle(
tags = ["ivy-only"],
deps = [
":largetable_lib",
- "@ngdeps//rxjs",
+ "@npm//rxjs",
],
)
diff --git a/modules/benchmarks/src/tree/BUILD.bazel b/modules/benchmarks/src/tree/BUILD.bazel
index 1941513d5c..3a7c4d5f01 100644
--- a/modules/benchmarks/src/tree/BUILD.bazel
+++ b/modules/benchmarks/src/tree/BUILD.bazel
@@ -14,7 +14,7 @@ ts_library(
srcs = ["tree_perf_test_utils.ts"],
deps = [
"//modules/e2e_util",
- "@ngdeps//protractor",
+ "@npm//protractor",
],
)
@@ -24,7 +24,7 @@ ts_library(
srcs = ["tree_perf.spec.ts"],
deps = [
":test_utils_lib",
- "@ngdeps//protractor",
+ "@npm//protractor",
],
)
@@ -34,6 +34,6 @@ ts_library(
srcs = ["tree_perf_detect_changes.spec.ts"],
deps = [
":test_utils_lib",
- "@ngdeps//protractor",
+ "@npm//protractor",
],
)
diff --git a/modules/benchmarks/src/tree/baseline/BUILD.bazel b/modules/benchmarks/src/tree/baseline/BUILD.bazel
index 6712588295..328724542e 100644
--- a/modules/benchmarks/src/tree/baseline/BUILD.bazel
+++ b/modules/benchmarks/src/tree/baseline/BUILD.bazel
@@ -1,5 +1,5 @@
load("//tools:defaults.bzl", "ts_library")
-load("@npm_bazel_typescript//:defs.bzl", "ts_devserver")
+load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//modules/benchmarks:benchmark_test.bzl", "benchmark_test")
package(default_visibility = ["//modules/benchmarks:__subpackages__"])
diff --git a/modules/benchmarks/src/tree/incremental_dom/BUILD.bazel b/modules/benchmarks/src/tree/incremental_dom/BUILD.bazel
index d0a5c5d47b..67ed3eb167 100644
--- a/modules/benchmarks/src/tree/incremental_dom/BUILD.bazel
+++ b/modules/benchmarks/src/tree/incremental_dom/BUILD.bazel
@@ -1,5 +1,5 @@
load("//tools:defaults.bzl", "ts_library")
-load("@npm_bazel_typescript//:defs.bzl", "ts_devserver")
+load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//modules/benchmarks:benchmark_test.bzl", "benchmark_test")
package(default_visibility = ["//modules/benchmarks:__subpackages__"])
@@ -11,7 +11,7 @@ ts_library(
deps = [
"//modules/benchmarks/src:util_lib",
"//modules/benchmarks/src/tree:util_lib",
- "@ngdeps//@types/node",
+ "@npm//@types/node",
],
)
@@ -21,7 +21,7 @@ ts_devserver(
index_html = "index.html",
port = 4200,
static_files = [
- "@ngdeps//node_modules/incremental-dom:dist/incremental-dom.js",
+ "@npm//node_modules/incremental-dom:dist/incremental-dom.js",
],
deps = [":incremental_dom"],
)
diff --git a/modules/benchmarks/src/tree/iv/BUILD.bazel b/modules/benchmarks/src/tree/iv/BUILD.bazel
index 7585cfc884..9452166c28 100644
--- a/modules/benchmarks/src/tree/iv/BUILD.bazel
+++ b/modules/benchmarks/src/tree/iv/BUILD.bazel
@@ -1,4 +1,4 @@
-load("@npm_bazel_typescript//:defs.bzl", "ts_devserver")
+load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//modules/benchmarks:benchmark_test.bzl", "benchmark_test")
package(default_visibility = ["//modules/benchmarks:__subpackages__"])
diff --git a/modules/benchmarks/src/tree/ng1/BUILD.bazel b/modules/benchmarks/src/tree/ng1/BUILD.bazel
index d1dc388f6d..6caac7ab98 100644
--- a/modules/benchmarks/src/tree/ng1/BUILD.bazel
+++ b/modules/benchmarks/src/tree/ng1/BUILD.bazel
@@ -1,5 +1,5 @@
load("//tools:defaults.bzl", "ts_library")
-load("@npm_bazel_typescript//:defs.bzl", "ts_devserver")
+load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//modules/benchmarks:benchmark_test.bzl", "benchmark_test")
package(default_visibility = ["//modules/benchmarks:__subpackages__"])
@@ -20,7 +20,7 @@ ts_devserver(
index_html = "index.html",
port = 4200,
static_files = [
- "@ngdeps//node_modules/angular:angular.js",
+ "@npm//node_modules/angular:angular.js",
],
deps = [":ng1"],
)
diff --git a/modules/benchmarks/src/tree/ng2/BUILD.bazel b/modules/benchmarks/src/tree/ng2/BUILD.bazel
index e7d0059f99..290f02465e 100644
--- a/modules/benchmarks/src/tree/ng2/BUILD.bazel
+++ b/modules/benchmarks/src/tree/ng2/BUILD.bazel
@@ -1,5 +1,5 @@
load("//tools:defaults.bzl", "ng_module")
-load("@npm_bazel_typescript//:defs.bzl", "ts_devserver")
+load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//modules/benchmarks:benchmark_test.bzl", "benchmark_test")
package(default_visibility = ["//modules/benchmarks:__subpackages__"])
@@ -28,12 +28,12 @@ ts_devserver(
index_html = "index.html",
port = 4200,
scripts = [
- "@ngdeps//node_modules/tslib:tslib.js",
+ "@npm//node_modules/tslib:tslib.js",
"//tools/rxjs:rxjs_umd_modules",
],
static_files = [
- "@ngdeps//node_modules/zone.js:dist/zone.js",
- "@ngdeps//node_modules/reflect-metadata:Reflect.js",
+ "@npm//node_modules/zone.js:dist/zone.js",
+ "@npm//node_modules/reflect-metadata:Reflect.js",
],
deps = [":ng2"],
)
diff --git a/modules/benchmarks/src/tree/ng2_next/BUILD.bazel b/modules/benchmarks/src/tree/ng2_next/BUILD.bazel
index 8136fb9361..628fd51a64 100644
--- a/modules/benchmarks/src/tree/ng2_next/BUILD.bazel
+++ b/modules/benchmarks/src/tree/ng2_next/BUILD.bazel
@@ -1,5 +1,5 @@
load("//tools:defaults.bzl", "ts_library")
-load("@npm_bazel_typescript//:defs.bzl", "ts_devserver")
+load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//modules/benchmarks:benchmark_test.bzl", "benchmark_test")
package(default_visibility = ["//modules/benchmarks:__subpackages__"])
@@ -23,7 +23,7 @@ ts_devserver(
index_html = "index.html",
port = 4200,
scripts = [
- "@ngdeps//node_modules/tslib:tslib.js",
+ "@npm//node_modules/tslib:tslib.js",
"//tools/rxjs:rxjs_umd_modules",
],
deps = [":ng2_next"],
diff --git a/modules/benchmarks/src/tree/ng2_static/BUILD.bazel b/modules/benchmarks/src/tree/ng2_static/BUILD.bazel
index 7cc98422d2..9fdb2c364d 100644
--- a/modules/benchmarks/src/tree/ng2_static/BUILD.bazel
+++ b/modules/benchmarks/src/tree/ng2_static/BUILD.bazel
@@ -1,5 +1,5 @@
load("//tools:defaults.bzl", "ts_library")
-load("@npm_bazel_typescript//:defs.bzl", "ts_devserver")
+load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//modules/benchmarks:benchmark_test.bzl", "benchmark_test")
package(default_visibility = ["//modules/benchmarks:__subpackages__"])
@@ -23,12 +23,12 @@ ts_devserver(
index_html = "index.html",
port = 4200,
scripts = [
- "@ngdeps//node_modules/tslib:tslib.js",
+ "@npm//node_modules/tslib:tslib.js",
"//tools/rxjs:rxjs_umd_modules",
],
static_files = [
- "@ngdeps//node_modules/zone.js:dist/zone.js",
- "@ngdeps//node_modules/reflect-metadata:Reflect.js",
+ "@npm//node_modules/zone.js:dist/zone.js",
+ "@npm//node_modules/reflect-metadata:Reflect.js",
],
deps = [":ng2_static"],
)
diff --git a/modules/benchmarks/src/tree/ng2_switch/BUILD.bazel b/modules/benchmarks/src/tree/ng2_switch/BUILD.bazel
index 03f31005a0..8c1d09fe20 100644
--- a/modules/benchmarks/src/tree/ng2_switch/BUILD.bazel
+++ b/modules/benchmarks/src/tree/ng2_switch/BUILD.bazel
@@ -1,5 +1,5 @@
load("//tools:defaults.bzl", "ng_module")
-load("@npm_bazel_typescript//:defs.bzl", "ts_devserver")
+load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//modules/benchmarks:benchmark_test.bzl", "benchmark_test")
package(default_visibility = ["//modules/benchmarks:__subpackages__"])
@@ -25,12 +25,12 @@ ts_devserver(
index_html = "index.html",
port = 4200,
scripts = [
- "@ngdeps//node_modules/tslib:tslib.js",
+ "@npm//node_modules/tslib:tslib.js",
"//tools/rxjs:rxjs_umd_modules",
],
static_files = [
- "@ngdeps//node_modules/zone.js:dist/zone.js",
- "@ngdeps//node_modules/reflect-metadata:Reflect.js",
+ "@npm//node_modules/zone.js:dist/zone.js",
+ "@npm//node_modules/reflect-metadata:Reflect.js",
],
deps = [":ng2_switch"],
)
diff --git a/modules/benchmarks/src/tree/render3/BUILD.bazel b/modules/benchmarks/src/tree/render3/BUILD.bazel
index 705018b0eb..b44eeeaa49 100644
--- a/modules/benchmarks/src/tree/render3/BUILD.bazel
+++ b/modules/benchmarks/src/tree/render3/BUILD.bazel
@@ -1,7 +1,7 @@
package(default_visibility = ["//modules/benchmarks:__subpackages__"])
load("//tools:defaults.bzl", "ng_module", "ng_rollup_bundle")
-load("@npm_bazel_typescript//:defs.bzl", "ts_devserver")
+load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//modules/benchmarks:benchmark_test.bzl", "benchmark_test")
ng_module(
@@ -13,7 +13,7 @@ ng_module(
"//packages:types",
"//packages/common",
"//packages/core",
- "@ngdeps//reflect-metadata",
+ "@npm//reflect-metadata",
],
)
@@ -23,7 +23,7 @@ ng_rollup_bundle(
tags = ["ivy-only"],
deps = [
":tree_lib",
- "@ngdeps//rxjs",
+ "@npm//rxjs",
],
)
diff --git a/modules/benchmarks/src/tree/render3_function/BUILD.bazel b/modules/benchmarks/src/tree/render3_function/BUILD.bazel
index 2d7a924ebb..d4225ec2e4 100644
--- a/modules/benchmarks/src/tree/render3_function/BUILD.bazel
+++ b/modules/benchmarks/src/tree/render3_function/BUILD.bazel
@@ -1,4 +1,4 @@
-load("@npm_bazel_typescript//:defs.bzl", "ts_devserver")
+load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ts_library")
load("//modules/benchmarks:benchmark_test.bzl", "benchmark_test")
@@ -21,7 +21,7 @@ ts_devserver(
index_html = "index.html",
port = 4200,
scripts = [
- "@ngdeps//node_modules/tslib:tslib.js",
+ "@npm//node_modules/tslib:tslib.js",
"//tools/rxjs:rxjs_umd_modules",
],
deps = [":render3_function_lib"],
diff --git a/modules/e2e_util/BUILD.bazel b/modules/e2e_util/BUILD.bazel
index 3dc9b959c9..0fa699b43b 100644
--- a/modules/e2e_util/BUILD.bazel
+++ b/modules/e2e_util/BUILD.bazel
@@ -9,11 +9,11 @@ ts_library(
deps = [
"//packages:types",
"//packages/benchpress",
- "@ngdeps//@types/fs-extra",
- "@ngdeps//@types/selenium-webdriver",
- "@ngdeps//fs-extra",
- "@ngdeps//node-uuid",
- "@ngdeps//protractor",
- "@ngdeps//selenium-webdriver",
+ "@npm//@types/fs-extra",
+ "@npm//@types/selenium-webdriver",
+ "@npm//fs-extra",
+ "@npm//node-uuid",
+ "@npm//protractor",
+ "@npm//selenium-webdriver",
],
)
diff --git a/modules/playground/e2e_test/example_test.bzl b/modules/playground/e2e_test/example_test.bzl
index b9f1b018e0..70eaa43388 100644
--- a/modules/playground/e2e_test/example_test.bzl
+++ b/modules/playground/e2e_test/example_test.bzl
@@ -10,9 +10,9 @@ def example_test(name, srcs, server, data = [], **kwargs):
deps = [
"//modules/e2e_util",
"//packages/private/testing",
- "@ngdeps//@types/jasminewd2",
- "@ngdeps//@types/selenium-webdriver",
- "@ngdeps//protractor",
+ "@npm//@types/jasminewd2",
+ "@npm//@types/selenium-webdriver",
+ "@npm//protractor",
],
)
@@ -23,10 +23,10 @@ def example_test(name, srcs, server, data = [], **kwargs):
server = server,
deps = [
":%s_lib" % name,
- "@ngdeps//protractor",
- "@ngdeps//selenium-webdriver",
- "@ngdeps//yargs",
- "@ngdeps//source-map",
+ "@npm//protractor",
+ "@npm//selenium-webdriver",
+ "@npm//yargs",
+ "@npm//source-map",
],
**kwargs
)
diff --git a/modules/playground/src/animate/BUILD.bazel b/modules/playground/src/animate/BUILD.bazel
index 49855b059f..48ac5c29bb 100644
--- a/modules/playground/src/animate/BUILD.bazel
+++ b/modules/playground/src/animate/BUILD.bazel
@@ -1,5 +1,5 @@
load("//tools:defaults.bzl", "ng_module")
-load("@npm_bazel_typescript//:defs.bzl", "ts_devserver")
+load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
package(default_visibility = ["//modules/playground:__subpackages__"])
@@ -23,10 +23,10 @@ ts_devserver(
entry_module = "angular/modules/playground/src/animate/index",
index_html = "index.html",
port = 4200,
- scripts = ["@ngdeps//node_modules/tslib:tslib.js"],
+ scripts = ["@npm//node_modules/tslib:tslib.js"],
static_files = [
- "@ngdeps//node_modules/zone.js:dist/zone.js",
- "@ngdeps//node_modules/reflect-metadata:Reflect.js",
+ "@npm//node_modules/zone.js:dist/zone.js",
+ "@npm//node_modules/reflect-metadata:Reflect.js",
],
deps = [":animate"],
)
diff --git a/modules/playground/src/async/BUILD.bazel b/modules/playground/src/async/BUILD.bazel
index fe301f8268..4e1d13130d 100644
--- a/modules/playground/src/async/BUILD.bazel
+++ b/modules/playground/src/async/BUILD.bazel
@@ -1,5 +1,5 @@
load("//tools:defaults.bzl", "ng_module")
-load("@npm_bazel_typescript//:defs.bzl", "ts_devserver")
+load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
package(default_visibility = ["//modules/playground:__subpackages__"])
@@ -22,12 +22,12 @@ ts_devserver(
index_html = "index.html",
port = 4200,
scripts = [
- "@ngdeps//node_modules/tslib:tslib.js",
+ "@npm//node_modules/tslib:tslib.js",
"//tools/rxjs:rxjs_umd_modules",
],
static_files = [
- "@ngdeps//node_modules/zone.js:dist/zone.js",
- "@ngdeps//node_modules/reflect-metadata:Reflect.js",
+ "@npm//node_modules/zone.js:dist/zone.js",
+ "@npm//node_modules/reflect-metadata:Reflect.js",
],
deps = [":async"],
)
diff --git a/modules/playground/src/benchpress/BUILD.bazel b/modules/playground/src/benchpress/BUILD.bazel
index 8b4b173938..5c51cf1ce6 100644
--- a/modules/playground/src/benchpress/BUILD.bazel
+++ b/modules/playground/src/benchpress/BUILD.bazel
@@ -1,4 +1,4 @@
-load("@npm_bazel_typescript//:defs.bzl", "ts_devserver")
+load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
package(default_visibility = ["//modules/playground:__subpackages__"])
diff --git a/modules/playground/src/gestures/BUILD.bazel b/modules/playground/src/gestures/BUILD.bazel
index 1188d330d6..872534abf4 100644
--- a/modules/playground/src/gestures/BUILD.bazel
+++ b/modules/playground/src/gestures/BUILD.bazel
@@ -1,5 +1,5 @@
load("//tools:defaults.bzl", "ng_module")
-load("@npm_bazel_typescript//:defs.bzl", "ts_devserver")
+load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
package(default_visibility = ["//modules/playground:__subpackages__"])
@@ -14,7 +14,7 @@ ng_module(
"//packages/core",
"//packages/platform-browser",
"//packages/platform-browser-dynamic",
- "@ngdeps//@types/hammerjs",
+ "@npm//@types/hammerjs",
],
)
@@ -23,11 +23,11 @@ ts_devserver(
entry_module = "angular/modules/playground/src/gestures/index",
index_html = "index.html",
port = 4200,
- scripts = ["@ngdeps//node_modules/tslib:tslib.js"],
+ scripts = ["@npm//node_modules/tslib:tslib.js"],
static_files = [
- "@ngdeps//node_modules/hammerjs:hammer.js",
- "@ngdeps//node_modules/zone.js:dist/zone.js",
- "@ngdeps//node_modules/reflect-metadata:Reflect.js",
+ "@npm//node_modules/hammerjs:hammer.js",
+ "@npm//node_modules/zone.js:dist/zone.js",
+ "@npm//node_modules/reflect-metadata:Reflect.js",
],
deps = [":gestures"],
)
diff --git a/modules/playground/src/hello_world/BUILD.bazel b/modules/playground/src/hello_world/BUILD.bazel
index d90d3efb57..0f802e1b3d 100644
--- a/modules/playground/src/hello_world/BUILD.bazel
+++ b/modules/playground/src/hello_world/BUILD.bazel
@@ -1,5 +1,5 @@
load("//tools:defaults.bzl", "ng_module")
-load("@npm_bazel_typescript//:defs.bzl", "ts_devserver")
+load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
package(default_visibility = ["//modules/playground:__subpackages__"])
@@ -22,12 +22,12 @@ ts_devserver(
index_html = "index.html",
port = 4200,
scripts = [
- "@ngdeps//node_modules/tslib:tslib.js",
+ "@npm//node_modules/tslib:tslib.js",
"//tools/rxjs:rxjs_umd_modules",
],
static_files = [
- "@ngdeps//node_modules/zone.js:dist/zone.js",
- "@ngdeps//node_modules/reflect-metadata:Reflect.js",
+ "@npm//node_modules/zone.js:dist/zone.js",
+ "@npm//node_modules/reflect-metadata:Reflect.js",
],
deps = [":hello_world"],
)
diff --git a/modules/playground/src/http/BUILD.bazel b/modules/playground/src/http/BUILD.bazel
index 6ba83ed650..1457d17c7f 100644
--- a/modules/playground/src/http/BUILD.bazel
+++ b/modules/playground/src/http/BUILD.bazel
@@ -1,5 +1,5 @@
load("//tools:defaults.bzl", "ng_module")
-load("@npm_bazel_typescript//:defs.bzl", "ts_devserver")
+load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
package(default_visibility = ["//modules/playground:__subpackages__"])
@@ -14,7 +14,7 @@ ng_module(
"//packages/http",
"//packages/platform-browser",
"//packages/platform-browser-dynamic",
- "@ngdeps//rxjs",
+ "@npm//rxjs",
],
)
@@ -25,12 +25,12 @@ ts_devserver(
index_html = "index.html",
port = 4200,
scripts = [
- "@ngdeps//node_modules/tslib:tslib.js",
+ "@npm//node_modules/tslib:tslib.js",
"//tools/rxjs:rxjs_umd_modules",
],
static_files = [
- "@ngdeps//node_modules/zone.js:dist/zone.js",
- "@ngdeps//node_modules/reflect-metadata:Reflect.js",
+ "@npm//node_modules/zone.js:dist/zone.js",
+ "@npm//node_modules/reflect-metadata:Reflect.js",
],
deps = [":http"],
)
diff --git a/modules/playground/src/jsonp/BUILD.bazel b/modules/playground/src/jsonp/BUILD.bazel
index 5bc0b47f24..ec9d0f059d 100644
--- a/modules/playground/src/jsonp/BUILD.bazel
+++ b/modules/playground/src/jsonp/BUILD.bazel
@@ -1,5 +1,5 @@
load("//tools:defaults.bzl", "ng_module")
-load("@npm_bazel_typescript//:defs.bzl", "ts_devserver")
+load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
package(default_visibility = ["//modules/playground:__subpackages__"])
@@ -24,12 +24,12 @@ ts_devserver(
index_html = "index.html",
port = 4200,
scripts = [
- "@ngdeps//node_modules/tslib:tslib.js",
+ "@npm//node_modules/tslib:tslib.js",
"//tools/rxjs:rxjs_umd_modules",
],
static_files = [
- "@ngdeps//node_modules/zone.js:dist/zone.js",
- "@ngdeps//node_modules/reflect-metadata:Reflect.js",
+ "@npm//node_modules/zone.js:dist/zone.js",
+ "@npm//node_modules/reflect-metadata:Reflect.js",
],
deps = [":jsonp"],
)
diff --git a/modules/playground/src/key_events/BUILD.bazel b/modules/playground/src/key_events/BUILD.bazel
index 1ce543a100..2cfec987fb 100644
--- a/modules/playground/src/key_events/BUILD.bazel
+++ b/modules/playground/src/key_events/BUILD.bazel
@@ -1,5 +1,5 @@
load("//tools:defaults.bzl", "ng_module")
-load("@npm_bazel_typescript//:defs.bzl", "ts_devserver")
+load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
package(default_visibility = ["//modules/playground:__subpackages__"])
@@ -22,12 +22,12 @@ ts_devserver(
index_html = "index.html",
port = 4200,
scripts = [
- "@ngdeps//node_modules/tslib:tslib.js",
+ "@npm//node_modules/tslib:tslib.js",
"//tools/rxjs:rxjs_umd_modules",
],
static_files = [
- "@ngdeps//node_modules/zone.js:dist/zone.js",
- "@ngdeps//node_modules/reflect-metadata:Reflect.js",
+ "@npm//node_modules/zone.js:dist/zone.js",
+ "@npm//node_modules/reflect-metadata:Reflect.js",
],
deps = [":key_events"],
)
diff --git a/modules/playground/src/model_driven_forms/BUILD.bazel b/modules/playground/src/model_driven_forms/BUILD.bazel
index 87af847a9b..271d04298b 100644
--- a/modules/playground/src/model_driven_forms/BUILD.bazel
+++ b/modules/playground/src/model_driven_forms/BUILD.bazel
@@ -1,5 +1,5 @@
load("//tools:defaults.bzl", "ng_module")
-load("@npm_bazel_typescript//:defs.bzl", "ts_devserver")
+load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
package(default_visibility = ["//modules/playground:__subpackages__"])
@@ -23,12 +23,12 @@ ts_devserver(
index_html = "index.html",
port = 4200,
scripts = [
- "@ngdeps//node_modules/tslib:tslib.js",
+ "@npm//node_modules/tslib:tslib.js",
"//tools/rxjs:rxjs_umd_modules",
],
static_files = [
- "@ngdeps//node_modules/zone.js:dist/zone.js",
- "@ngdeps//node_modules/reflect-metadata:Reflect.js",
+ "@npm//node_modules/zone.js:dist/zone.js",
+ "@npm//node_modules/reflect-metadata:Reflect.js",
],
deps = [":model_driven_forms"],
)
diff --git a/modules/playground/src/order_management/BUILD.bazel b/modules/playground/src/order_management/BUILD.bazel
index ef3c9781e4..c31b1fc06a 100644
--- a/modules/playground/src/order_management/BUILD.bazel
+++ b/modules/playground/src/order_management/BUILD.bazel
@@ -1,5 +1,5 @@
load("//tools:defaults.bzl", "ng_module")
-load("@npm_bazel_typescript//:defs.bzl", "ts_devserver")
+load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
package(default_visibility = ["//modules/playground:__subpackages__"])
@@ -23,12 +23,12 @@ ts_devserver(
index_html = "index.html",
port = 4200,
scripts = [
- "@ngdeps//node_modules/tslib:tslib.js",
+ "@npm//node_modules/tslib:tslib.js",
"//tools/rxjs:rxjs_umd_modules",
],
static_files = [
- "@ngdeps//node_modules/zone.js:dist/zone.js",
- "@ngdeps//node_modules/reflect-metadata:Reflect.js",
+ "@npm//node_modules/zone.js:dist/zone.js",
+ "@npm//node_modules/reflect-metadata:Reflect.js",
],
deps = [":order_management"],
)
diff --git a/modules/playground/src/person_management/BUILD.bazel b/modules/playground/src/person_management/BUILD.bazel
index d5a8a50c10..71c2c84c5e 100644
--- a/modules/playground/src/person_management/BUILD.bazel
+++ b/modules/playground/src/person_management/BUILD.bazel
@@ -1,5 +1,5 @@
load("//tools:defaults.bzl", "ng_module")
-load("@npm_bazel_typescript//:defs.bzl", "ts_devserver")
+load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
package(default_visibility = ["//modules/playground:__subpackages__"])
@@ -23,12 +23,12 @@ ts_devserver(
index_html = "index.html",
port = 4200,
scripts = [
- "@ngdeps//node_modules/tslib:tslib.js",
+ "@npm//node_modules/tslib:tslib.js",
"//tools/rxjs:rxjs_umd_modules",
],
static_files = [
- "@ngdeps//node_modules/zone.js:dist/zone.js",
- "@ngdeps//node_modules/reflect-metadata:Reflect.js",
+ "@npm//node_modules/zone.js:dist/zone.js",
+ "@npm//node_modules/reflect-metadata:Reflect.js",
],
deps = [":person_management"],
)
diff --git a/modules/playground/src/relative_assets/BUILD.bazel b/modules/playground/src/relative_assets/BUILD.bazel
index 64ac75e630..539c9a6363 100644
--- a/modules/playground/src/relative_assets/BUILD.bazel
+++ b/modules/playground/src/relative_assets/BUILD.bazel
@@ -1,5 +1,5 @@
load("//tools:defaults.bzl", "ng_module")
-load("@npm_bazel_typescript//:defs.bzl", "ts_devserver")
+load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
package(default_visibility = ["//modules/playground:__subpackages__"])
@@ -17,7 +17,7 @@ ng_module(
"//packages/platform-browser",
"//packages/platform-browser-dynamic",
# Needed because the example uses "module.id" in order to load assets relatively.
- "@ngdeps//@types/node",
+ "@npm//@types/node",
],
)
@@ -31,12 +31,12 @@ ts_devserver(
index_html = "index.html",
port = 4200,
scripts = [
- "@ngdeps//node_modules/tslib:tslib.js",
+ "@npm//node_modules/tslib:tslib.js",
"//tools/rxjs:rxjs_umd_modules",
],
static_files = [
- "@ngdeps//node_modules/zone.js:dist/zone.js",
- "@ngdeps//node_modules/reflect-metadata:Reflect.js",
+ "@npm//node_modules/zone.js:dist/zone.js",
+ "@npm//node_modules/reflect-metadata:Reflect.js",
],
deps = [":relative_assets"],
)
diff --git a/modules/playground/src/routing/BUILD.bazel b/modules/playground/src/routing/BUILD.bazel
index 692c7f9309..ab431b9fbf 100644
--- a/modules/playground/src/routing/BUILD.bazel
+++ b/modules/playground/src/routing/BUILD.bazel
@@ -1,5 +1,5 @@
load("//tools:defaults.bzl", "ng_module")
-load("@npm_bazel_typescript//:defs.bzl", "ts_devserver")
+load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
package(default_visibility = ["//modules/playground:__subpackages__"])
@@ -15,7 +15,7 @@ ng_module(
"//packages/platform-browser",
"//packages/platform-browser-dynamic",
"//packages/router",
- "@ngdeps//rxjs",
+ "@npm//rxjs",
],
)
@@ -26,15 +26,15 @@ ts_devserver(
# there is only one RxJS UMD bundle that re-exports everything at the root.
"//modules/playground:systemjs-rxjs-operators.js",
"//third_party/fonts.google.com/open-sans",
- "@ngdeps//node_modules/rxjs:bundles/rxjs.umd.js",
- "@ngdeps//node_modules/tslib:tslib.js",
+ "@npm//node_modules/rxjs:bundles/rxjs.umd.js",
+ "@npm//node_modules/tslib:tslib.js",
] + glob(["**/*.css"]),
port = 4200,
static_files = [
"index.html",
- "@ngdeps//node_modules/zone.js:dist/zone.js",
- "@ngdeps//node_modules/reflect-metadata:Reflect.js",
- "@ngdeps//node_modules/systemjs:dist/system.js",
+ "@npm//node_modules/zone.js:dist/zone.js",
+ "@npm//node_modules/reflect-metadata:Reflect.js",
+ "@npm//node_modules/systemjs:dist/system.js",
"//modules/playground:systemjs-config.js",
"load-app.js",
],
diff --git a/modules/playground/src/routing/index.html b/modules/playground/src/routing/index.html
index 414edae61c..49e677877a 100644
--- a/modules/playground/src/routing/index.html
+++ b/modules/playground/src/routing/index.html
@@ -14,9 +14,9 @@
This is because we want to use SystemJS instead of RequireJS and want to support
lazy loading of routes. Read more in the "load-app.js" file.
-->
-
-
-
+
+
+