diff --git a/WORKSPACE b/WORKSPACE index 12282e82b550f2..eae6eb0b6c28c4 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -65,7 +65,19 @@ node_repositories( 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, + # Temporarily disable node_modules symlinking until the fix for + # https://github.com/bazelbuild/bazel/issues/8487 makes it into a + # future Bazel release + symlink_node_modules = False, yarn_lock = "//:yarn.lock", ) diff --git a/packages/bazel/src/builders/files/WORKSPACE.template b/packages/bazel/src/builders/files/WORKSPACE.template index ff5e14b07e235d..ce1bb868be989d 100644 --- a/packages/bazel/src/builders/files/WORKSPACE.template +++ b/packages/bazel/src/builders/files/WORKSPACE.template @@ -52,7 +52,12 @@ Try running `yarn bazel` instead. ) yarn_install( name = "npm", + data = ["//:angular-metadata.tsconfig.json"], package_json = "//:package.json", + # Temporarily disable node_modules symlinking until the fix for + # https://github.com/bazelbuild/bazel/issues/8487 makes it into a + # future Bazel release + symlink_node_modules = False, yarn_lock = "//:yarn.lock", )