Skip to content

Commit

Permalink
Add missing node_modules symlink
Browse files Browse the repository at this point in the history
  • Loading branch information
Silic0nS0ldier committed Feb 9, 2024
1 parent a6a3ede commit 5dd9639
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/private/repositories/yarn_install/impl.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,12 @@ def _yarn_install_impl(rctx):
if result.return_code:
fail("yarn_install failed: %s (%s)" % (result.stdout, result.stderr))

# Create symlink from `node_modules` to `_/.../node_modules`
rctx.symlink(
rctx.path(_rerooted_workspace_package_json_dir(rctx) + "/node_modules"),
rctx.path("node_modules"),
)

result = rctx.execute([
"find",
rctx.path("node_modules"),
Expand Down

0 comments on commit 5dd9639

Please sign in to comment.