File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ node_binary(
1414mocha_test (
1515 name = "foo_test" ,
1616 main = "foo_test.js" ,
17+ size = "small" ,
1718 modules = ["@npm_underscore//:modules" ],
1819 deps = [
1920 "//examples/baz" ,
Original file line number Diff line number Diff line change @@ -14,6 +14,12 @@ filegroup(
1414)
1515"""
1616
17+ def _mirror_path (ctx , workspace_root , path ):
18+ src = '/' .join ([workspace_root , path ])
19+ dst = '/' .join ([ctx .path ('.' ), path ])
20+ ctx .symlink (src , dst )
21+
22+
1723def _node_toolchain_impl (ctx ):
1824 os = ctx .os .name
1925 if os == 'linux' :
@@ -23,7 +29,10 @@ def _node_toolchain_impl(ctx):
2329 else :
2430 fail ("Unsupported operating system: " + os )
2531
26- ctx .symlink (noderoot , ctx .path ('' ))
32+ _mirror_path (ctx , noderoot , "bin" )
33+ _mirror_path (ctx , noderoot , "include" )
34+ _mirror_path (ctx , noderoot , "lib" )
35+ _mirror_path (ctx , noderoot , "share" )
2736
2837 ctx .file ("WORKSPACE" , "workspace(name = '%s')" % ctx .name )
2938 ctx .file ("BUILD" , NODE_TOOLCHAIN_BUILD_FILE )
You can’t perform that action at this time.
0 commit comments