diff --git a/.travis.yml b/.travis.yml index b71a42a..e8928c3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,7 @@ os: - osx env: + - V=0.4.4 - V=0.4.3 - V=0.4.2 - V=0.4.1 diff --git a/README.md b/README.md index e8af6a6..def2532 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ dependencies. This will download the nodejs toolchain including ```python git_repository( name = "org_pubref_rules_node", - tag = "v0.3.2", + tag = "v0.3.3", remote = "https://github.com/pubref/rules_node.git", ) diff --git a/node/internal/node_repositories.bzl b/node/internal/node_repositories.bzl index 6416768..a5de0b4 100644 --- a/node/internal/node_repositories.bzl +++ b/node/internal/node_repositories.bzl @@ -24,19 +24,22 @@ def _node_toolchain_impl(ctx): fail("Unsupported operating system: " + os) ctx.symlink(noderoot, ctx.path('')) + ctx.file("WORKSPACE", "workspace(name = '%s')" % ctx.name) ctx.file("BUILD", NODE_TOOLCHAIN_BUILD_FILE) + ctx.file("BUILD.bazel", NODE_TOOLCHAIN_BUILD_FILE) + _node_toolchain = repository_rule( _node_toolchain_impl, attrs = { "_linux": attr.label( - default = Label("@nodejs_linux_amd64//:BUILD"), + default = Label("@nodejs_linux_amd64//:WORKSPACE"), allow_files = True, single_file = True, ), "_darwin": attr.label( - default = Label("@nodejs_darwin_amd64//:BUILD"), + default = Label("@nodejs_darwin_amd64//:WORKSPACE"), allow_files = True, single_file = True, ),