Update to nodejs rules 0.31.1

nodejs_binary entry_point is now a label

Closes #453

PiperOrigin-RevId: 252078645
diff --git a/.bazelrc b/.bazelrc
index 01852fe..6005eaa 100644
--- a/.bazelrc
+++ b/.bazelrc
@@ -9,7 +9,7 @@
 test --nolegacy_external_runfiles
 
 # Enable the "Managed Directories" feature
-build --experimental_allow_incremental_repository_updates
+common --experimental_allow_incremental_repository_updates
 
 # Opt-in to upcoming breaking change
 build --incompatible_depset_is_not_iterable
diff --git a/internal/BUILD.bazel b/internal/BUILD.bazel
index a66f109..973561d 100644
--- a/internal/BUILD.bazel
+++ b/internal/BUILD.bazel
@@ -36,7 +36,7 @@
         "@npm//source-map-support",
         "@npm//typescript",
     ],
-    entry_point = "typescript/lib/tsc.js",
+    entry_point = "@npm//node_modules/typescript:lib/tsc.js",
     visibility = ["//internal:__subpackages__"],
 )
 
@@ -88,7 +88,7 @@
         "@npm//typescript",
         "//third_party/github.com/bazelbuild/bazel/src/main/protobuf:worker_protocol.proto",
     ],
-    entry_point = "build_bazel_rules_typescript/internal/tsc_wrapped/tsc_wrapped.js",
+    entry_point = ":tsc_wrapped/tsc_wrapped.ts",
     visibility = ["//visibility:public"],
 )
 
diff --git a/package.bzl b/package.bzl
index 3b13286..f31ab0c 100644
--- a/package.bzl
+++ b/package.bzl
@@ -30,8 +30,8 @@
     _maybe(
         http_archive,
         name = "build_bazel_rules_nodejs",
-        sha256 = "bc180118b9e1c7f2b74dc76a8f798d706fe9fc53470ef9296728267b4cd29441",
-        urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/0.30.2/rules_nodejs-0.30.2.tar.gz"],
+        sha256 = "e04a82a72146bfbca2d0575947daa60fda1878c8d3a3afe868a8ec39a6b968bb",
+        urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/0.31.1/rules_nodejs-0.31.1.tar.gz"],
     )
 
     # For protocol buffers
diff --git a/package.json b/package.json
index 5b85c2e..c176455 100644
--- a/package.json
+++ b/package.json
@@ -6,8 +6,8 @@
         "@bazel/bazel": "^0.26.0",
         "@bazel/buildifier": "^0.20.0",
         "@bazel/ibazel": "^0.2.0",
-        "@bazel/jasmine": "^0.30.0",
-        "@bazel/typescript": "^0.30.0",
+        "@bazel/jasmine": "^0.31.1",
+        "@bazel/typescript": "^0.31.1",
         "@types/jasmine": "^2.8.2",
         "@types/long": "^4.0.0",
         "@types/node": "7.0.18",
diff --git a/yarn.lock b/yarn.lock
index 789b5f2..b987092 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -49,19 +49,19 @@
   resolved "https://registry.yarnpkg.com/@bazel/ibazel/-/ibazel-0.2.0.tgz#c119aef4344a789cef5e792caaee52264123e71c"
   integrity sha1-wRmu9DRKeJzvXnksqu5SJkEj5xw=
 
-"@bazel/jasmine@^0.30.0":
-  version "0.30.2"
-  resolved "https://registry.yarnpkg.com/@bazel/jasmine/-/jasmine-0.30.2.tgz#113325e2f30b9dbdf7cf8cd422a22f01259705cc"
-  integrity sha512-cDyrKrfsga8jRsr8iOE4xCMiJSr/iDyLDS8GeZZPB9nIjBAVrcgnPyflMhvtIERJCOX1WBZ0NKQOo659dZhmig==
+"@bazel/jasmine@^0.31.1":
+  version "0.31.1"
+  resolved "https://registry.yarnpkg.com/@bazel/jasmine/-/jasmine-0.31.1.tgz#da3de10760fe1e29e9fc748fabc4fcf604f4356a"
+  integrity sha512-heKo8qzm6DTm8eOlfL69RJJi1GLI9vJDSmBGYgol18K7oXz6JrspGWUL9/TlCYbRUUCt22kqX7f3R+QlD0KrCg==
   dependencies:
     jasmine "~3.3.1"
     jasmine-core "~3.3.0"
     v8-coverage "1.0.9"
 
-"@bazel/typescript@^0.30.0":
-  version "0.30.2"
-  resolved "https://registry.yarnpkg.com/@bazel/typescript/-/typescript-0.30.2.tgz#962eb122b80d3ef4805cf0520fc0a50d069ecb21"
-  integrity sha512-SIYHbg05Zyh7lrB8msnRjJ9hQSAHMOOWEV8seCKmCOx0noGP1Q00zXc4VRfi3uQCyCLZSFJvI4BXxnnKDwl61g==
+"@bazel/typescript@^0.31.1":
+  version "0.31.1"
+  resolved "https://registry.yarnpkg.com/@bazel/typescript/-/typescript-0.31.1.tgz#2ccf9997d97903c51e73f82e29433fe444b8d672"
+  integrity sha512-jUTJjwdc4JSDMt4kIj74gGtctu8xe0YZPJuPxOIS4TdrWcn+dG9Fy7Z8bJLXhePheig1JLY7NBP6BGwrtggzPQ==
   dependencies:
     protobufjs "6.8.8"
     semver "5.6.0"