@@ -7,6 +7,7 @@ workspace(
77)
88
99load ("@bazel_tools//tools/build_defs/repo:http.bzl" , "http_archive" )
10+ load ("//:yarn.bzl" , "YARN_LABEL" )
1011
1112# Add a patch fix for rules_webtesting v0.3.5 required for enabling runfiles on Windows.
1213# TODO: Remove the http_archive for this transitive dependency when a release is cut
@@ -94,7 +95,7 @@ yarn_install(
9495 # Note that we add the postinstall scripts here so that the dependencies are re-installed
9596 # when the postinstall patches are modified.
9697 data = [
97- "//:.yarn/releases/yarn-1.22.17.cjs" ,
98+ YARN_LABEL ,
9899 "//:.yarnrc" ,
99100 "//:scripts/puppeteer-chromedriver-versions.js" ,
100101 "//:scripts/webdriver-manager-update.js" ,
@@ -109,7 +110,7 @@ yarn_install(
109110 # We prefer to symlink the `node_modules` to only maintain a single install.
110111 # See https://github.com/angular/dev-infra/pull/446#issuecomment-1059820287 for details.
111112 symlink_node_modules = True ,
112- yarn = "//:.yarn/releases/yarn-1.22.17.cjs" ,
113+ yarn = YARN_LABEL ,
113114 yarn_lock = "//:yarn.lock" ,
114115)
115116
@@ -118,7 +119,7 @@ yarn_install(
118119 # Note that we add the postinstall scripts here so that the dependencies are re-installed
119120 # when the postinstall patches are modified.
120121 data = [
121- "//:.yarn/releases/yarn-1.22.17.cjs" ,
122+ YARN_LABEL ,
122123 "//:.yarnrc" ,
123124 "//aio:tools/cli-patches/patch.js" ,
124125 ],
@@ -131,27 +132,7 @@ yarn_install(
131132 # We prefer to symlink the `node_modules` to only maintain a single install.
132133 # See https://github.com/angular/dev-infra/pull/446#issuecomment-1059820287 for details.
133134 symlink_node_modules = True ,
134- yarn = "//:.yarn/releases/yarn-1.22.17.cjs" ,
135- yarn_lock = "//aio:yarn.lock" ,
136- )
137-
138- # Needed for the aio example e2e tests which run with patched node_module resolution through bazel
139- yarn_install (
140- name = "docs_examples_npm" ,
141- data = [
142- "//:.yarn/releases/yarn-1.22.17.cjs" ,
143- "//:.yarnrc" ,
144- ],
145- # Currently disabled due to:
146- # 1. Missing Windows support currently.
147- # 2. Incompatibilites with the `ts_library` rule.
148- exports_directories_only = False ,
149- manual_build_file_contents = npm_package_archives (),
150- package_json = "//aio/tools/examples/shared:package.json" ,
151- # We prefer to symlink the `node_modules` to only maintain a single install.
152- # See https://github.com/angular/dev-infra/pull/446#issuecomment-1059820287 for details.
153- symlink_node_modules = True ,
154- yarn = "//:.yarn/releases/yarn-1.22.17.cjs" ,
135+ yarn = YARN_LABEL ,
155136 yarn_lock = "//aio:yarn.lock" ,
156137)
157138
@@ -215,5 +196,5 @@ http_archive(
215196load ("@io_bazel_rules_sass//sass:sass_repositories.bzl" , "sass_repositories" )
216197
217198sass_repositories (
218- yarn_script = "//:.yarn/releases/yarn-1.22.17.cjs" ,
199+ yarn_script = YARN_LABEL ,
219200)
0 commit comments