We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f86245 commit baed738Copy full SHA for baed738
1 file changed
src/private/symlink_package.bzl
@@ -18,11 +18,10 @@ def manifest_path(ctx, file):
18
19
def _symlink_impl(ctx):
20
src = ctx.attr.src
21
- infos = src[JsInfo].npm_package_store_infos.to_list()
22
- if len(infos) == 0:
23
- src_dir = src[JsInfo].npm_sources.to_list()[0]
24
- else:
25
- src_dir = infos[0].package_store_directory
+
+ store_info = src[JsInfo].npm_package_store_infos.to_list()[0]
+ src_dir = store_info.package_store_directory
+ src_workspace = src.label.workspace_name if src.label.workspace_name != "" else ctx.workspace_name
26
27
destination = ctx.actions.declare_symlink(ctx.attr.name)
28
destination_build = ctx.actions.declare_symlink(
0 commit comments