@@ -28,7 +28,7 @@ load("//internal/node:node_labels.bzl", "get_node_label", "get_npm_label", "get_
2828COMMON_ATTRIBUTES = dict (dict (), ** {
2929 "always_hide_bazel_files" : attr .bool (
3030 doc = """Always hide Bazel build files such as `BUILD` and BUILD.bazel` by prefixing them with `_`.
31-
31+
3232Defaults to False, in which case Bazel files are _not_ hidden when `symlink_node_modules`
3333is True. In this case, the rule will report an error when there are Bazel files detected
3434in npm packages.
@@ -78,7 +78,7 @@ Note that the pattern used by many packages, which have plugins in the form pkg-
7878added as implicit dependencies. Thus for example, `rollup` will automatically get `rollup-plugin-json` included in its
7979dependencies without needing to use this attribute.
8080
81- The keys in the dict are npm package names, and the value may be a particular package, or a prefix ending with *.
81+ The keys in the dict are npm package names, and the value may be a particular package, or a prefix ending with *.
8282For example, `dynamic_deps = {"@bazel/typescript": "tsickle", "karma": "my-karma-plugin-*"}`
8383
8484Note, this may sound like "optionalDependencies" but that field in package.json actually means real dependencies
@@ -134,7 +134,7 @@ fine grained npm dependencies.
134134 ),
135135 "symlink_node_modules" : attr .bool (
136136 doc = """Turn symlinking of node_modules on
137-
137+
138138This requires the use of Bazel 0.26.0 and the experimental
139139managed_directories feature.
140140
@@ -163,7 +163,7 @@ def _create_build_files(repository_ctx, rule_type, node, lock_file):
163163 repository_ctx .attr .name ,
164164 rule_type ,
165165 "1" if error_on_build_files else "0" ,
166- str (lock_file ),
166+ repository_ctx . path (lock_file ),
167167 "," .join (repository_ctx .attr .included_files ),
168168 str (repository_ctx .attr .dynamic_deps ),
169169 ])
@@ -413,7 +413,7 @@ yarn_install = repository_rule(
413413 "frozen_lockfile" : attr .bool (
414414 default = False ,
415415 doc = """Passes the --frozen-lockfile flag to prevent updating yarn.lock.
416-
416+
417417Note that enabling this option will require that you run yarn outside of Bazel
418418when making changes to package.json.
419419""" ,
0 commit comments