Skip to content
Browse files

fix(bazel): Load http_archive and rules_nodejs dependencies (#27609)

Bazel 0.20 requires loading http_archive explicitly.
rules_nodejs dependencies must now be installed explicity as well.

PR Close #27609
  • Loading branch information...
kyliau authored and mhevery committed Dec 12, 2018
1 parent ffe1b4d commit 8313ffc38deae8706255056f4f51992f3325a4c8
Showing with 5 additions and 0 deletions.
  1. +5 −0 packages/bazel/src/schematics/bazel-workspace/files/WORKSPACE.template
@@ -10,6 +10,8 @@
# imports also make sense when referencing the published package.
workspace(name = "<%= utils.underscore(name) %>")

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

# The @angular repo contains rule for building Angular applications
# Provides "build_bazel_rules_typescript"
@@ -45,6 +47,9 @@ load("@build_bazel_rules_typescript//:package.bzl", "rules_typescript_dependenci
# build_bazel_rules_nodejs is loaded transitively through rules_typescript_dependencies.

load("@build_bazel_rules_nodejs//:package.bzl", "rules_nodejs_dependencies")

load("@build_bazel_rules_nodejs//:defs.bzl", "check_bazel_version", "node_repositories", "yarn_install")
# 0.18.0 is needed for .bazelignore

0 comments on commit 8313ffc

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.