refactor: add index.bzl

The build_bazel_rules_nodejs workspace is the last one using defs.bzl

see #1068
diff --git a/e2e/fine_grained_symlinks/WORKSPACE b/e2e/fine_grained_symlinks/WORKSPACE
index 5b92c85..ebc5ca8 100644
--- a/e2e/fine_grained_symlinks/WORKSPACE
+++ b/e2e/fine_grained_symlinks/WORKSPACE
@@ -11,7 +11,7 @@
     urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/0.37.1/rules_nodejs-0.37.1.tar.gz"],
 )
 
-load("@build_bazel_rules_nodejs//:defs.bzl", "node_repositories", "yarn_install")
+load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories", "yarn_install")
 
 # This test needs to run with yarn 1.9.2 to test the fix for
 # https://github.com/bazelbuild/rules_nodejs/issues/438 and