fix(build): install typescript in the project

Typescript was already included as a dependency of ts-loader but it
wasn't installed directly by package.json. This made the build sometimes
fail with the following error message:

> Could not load TypeScript. Try installing with `yarn add typescript`
> or `npm install typescript`.

This CL fixes it by installing typescript in the project.

Change-Id: I779ca219a9f14fb1ae8af833cbee2ac0c8c435db
diff --git a/package-lock.json b/package-lock.json
index 0d4cec1..36b6b0a 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -20,6 +20,7 @@
         "path": "^0.12.7",
         "source-map-loader": "^3.0.1",
         "ts-loader": "^9.3.0",
+        "typescript": "^4.9.5",
         "webpack": "^5.72.1",
         "webpack-cli": "^4.9.2",
         "webpack-preprocessor-loader": "^1.2.0",
@@ -2888,10 +2889,9 @@
       }
     },
     "node_modules/typescript": {
-      "version": "4.7.2",
-      "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.2.tgz",
-      "integrity": "sha512-Mamb1iX2FDUpcTRzltPxgWMKy3fhg0TN378ylbktPGPK/99KbDtMQ4W1hwgsbPAsG3a0xKa1vmw4VKZQbkvz5A==",
-      "peer": true,
+      "version": "4.9.5",
+      "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz",
+      "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==",
       "bin": {
         "tsc": "bin/tsc",
         "tsserver": "bin/tsserver"
@@ -5200,10 +5200,9 @@
       "dev": true
     },
     "typescript": {
-      "version": "4.7.2",
-      "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.2.tgz",
-      "integrity": "sha512-Mamb1iX2FDUpcTRzltPxgWMKy3fhg0TN378ylbktPGPK/99KbDtMQ4W1hwgsbPAsG3a0xKa1vmw4VKZQbkvz5A==",
-      "peer": true
+      "version": "4.9.5",
+      "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz",
+      "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g=="
     },
     "uri-js": {
       "version": "4.4.1",
diff --git a/package.json b/package.json
index 3e4d53f..c8df5fc 100644
--- a/package.json
+++ b/package.json
@@ -36,6 +36,7 @@
     "path": "^0.12.7",
     "source-map-loader": "^3.0.1",
     "ts-loader": "^9.3.0",
+    "typescript": "^4.9.5",
     "webpack": "^5.72.1",
     "webpack-cli": "^4.9.2",
     "webpack-preprocessor-loader": "^1.2.0",