build(bazel): turn on preserve-symlinks (#24881)

This change turns on preserve-symlinks in nodejs to verify hermeticity of the Angular build.

BREAKING CHANGE: Use of @angular/bazel rules now requires calling ng_setup_workspace() in your WORKSPACE file.

For example:

local_repository(
    name = "angular",
    path = "node_modules/@angular/bazel",
)

load("@angular//:index.bzl", "ng_setup_workspace")

ng_setup_workspace()

PR Close #24881
This commit is contained in:
Greg Magolan
2018-05-10 23:35:21 -07:00
committed by Victor Berchet
parent 70b51a6255
commit c438b5eeda
14 changed files with 389 additions and 81 deletions

View File

@ -81,3 +81,11 @@ local_repository(
name = "rxjs",
path = "node_modules/rxjs/src",
)
#
# Load and install our dependencies from local repositories
#
load("@angular//:index.bzl", "ng_setup_workspace")
ng_setup_workspace()