@@ -132,7 +132,7 @@ <h2 id="overview">Overview</h2>
132132
133133 < h2 id ="npm_install "> npm_install</ h2 >
134134
135- < pre > npm_install(< a href ="#npm_install.name "> name</ a > , < a href ="#npm_install.data "> data</ a > , < a href ="#npm_install.node_modules_filegroup " > node_modules_filegroup </ a > , < a href ="#npm_install.package_json "> package_json</ a > , < a href ="#npm_install.package_lock_json "> package_lock_json</ a > , < a href ="#npm_install.prod_only "> prod_only</ a > )</ pre >
135+ < pre > npm_install(< a href ="#npm_install.name "> name</ a > , < a href ="#npm_install.data "> data</ a > , < a href ="#npm_install.manual_build_file_contents " > manual_build_file_contents </ a > , < a href ="#npm_install.package_json "> package_json</ a > , < a href ="#npm_install.package_lock_json "> package_lock_json</ a > , < a href ="#npm_install.prod_only "> prod_only</ a > )</ pre >
136136
137137 < p > Runs npm install during workspace setup.</ p >
138138
@@ -159,16 +159,18 @@ <h3 id="npm_install_args">Attributes</h3>
159159
160160 </ td >
161161 </ tr >
162- < tr id ="npm_install.node_modules_filegroup ">
163- < td > < code > node_modules_filegroup </ code > </ td >
162+ < tr id ="npm_install.manual_build_file_contents ">
163+ < td > < code > manual_build_file_contents </ code > </ td >
164164 < td >
165165 < p > < code > String; Optional; Default is ''</ code > </ p >
166- < p > Experimental attribute that can be used to work-around
167- a bazel performance issue if the default node_modules filegroup
168- has too many files in it. Use it to define the node_modules
169- filegroup used by this rule such as
170- "filegroup(name = "node_modules", srcs = glob([...]))". See
171- < a href ="https://github.com/bazelbuild/bazel/issues/5153 "> https://github.com/bazelbuild/bazel/issues/5153</ a > .</ p >
166+ < p > Experimental attribute that can be used to override
167+ the generated BUILD.bazel file and set its contents manually.
168+ Can be used to work-around a bazel performance issue if the
169+ default node_modules filegroup has too many files in it. See
170+ < a href ="https://github.com/bazelbuild/bazel/issues/5153 "> https://github.com/bazelbuild/bazel/issues/5153</ a > . If
171+ you are running into performance issues due to a large
172+ node_modules filegroup it is recommended to switch to using
173+ fine grained npm dependencies.</ p >
172174 </ td >
173175 </ tr >
174176 < tr id ="npm_install.package_json ">
@@ -198,7 +200,7 @@ <h3 id="npm_install_args">Attributes</h3>
198200
199201 < h2 id ="yarn_install "> yarn_install</ h2 >
200202
201- < pre > yarn_install(< a href ="#yarn_install.name "> name</ a > , < a href ="#yarn_install.data "> data</ a > , < a href ="#yarn_install.node_modules_filegroup " > node_modules_filegroup </ a > , < a href ="#yarn_install.package_json "> package_json</ a > , < a href ="#yarn_install.prod_only "> prod_only</ a > , < a href ="#yarn_install.yarn_lock "> yarn_lock</ a > )</ pre >
203+ < pre > yarn_install(< a href ="#yarn_install.name "> name</ a > , < a href ="#yarn_install.data "> data</ a > , < a href ="#yarn_install.manual_build_file_contents " > manual_build_file_contents </ a > , < a href ="#yarn_install.package_json "> package_json</ a > , < a href ="#yarn_install.prod_only "> prod_only</ a > , < a href ="#yarn_install.yarn_lock "> yarn_lock</ a > )</ pre >
202204
203205 < p > Runs yarn install during workspace setup.</ p >
204206
@@ -225,16 +227,18 @@ <h3 id="yarn_install_args">Attributes</h3>
225227
226228 </ td >
227229 </ tr >
228- < tr id ="yarn_install.node_modules_filegroup ">
229- < td > < code > node_modules_filegroup </ code > </ td >
230+ < tr id ="yarn_install.manual_build_file_contents ">
231+ < td > < code > manual_build_file_contents </ code > </ td >
230232 < td >
231233 < p > < code > String; Optional; Default is ''</ code > </ p >
232- < p > Experimental attribute that can be used to work-around
233- a bazel performance issue if the default node_modules filegroup
234- has too many files in it. Use it to define the node_modules
235- filegroup used by this rule such as
236- "filegroup(name = "node_modules", srcs = glob([...]))". See
237- < a href ="https://github.com/bazelbuild/bazel/issues/5153 "> https://github.com/bazelbuild/bazel/issues/5153</ a > .</ p >
234+ < p > Experimental attribute that can be used to override
235+ the generated BUILD.bazel file and set its contents manually.
236+ Can be used to work-around a bazel performance issue if the
237+ default node_modules filegroup has too many files in it. See
238+ < a href ="https://github.com/bazelbuild/bazel/issues/5153 "> https://github.com/bazelbuild/bazel/issues/5153</ a > . If
239+ you are running into performance issues due to a large
240+ node_modules filegroup it is recommended to switch to using
241+ fine grained npm dependencies.</ p >
238242 </ td >
239243 </ tr >
240244 < tr id ="yarn_install.package_json ">
0 commit comments