feat(core): support TypeScript 4.5 (#44164)

Adds support for TypeScript 4.5. Includes the following changes:
* Bumping the package versions.
* Fixing a few calls to `createExportSpecifier` and `createImportSpecifier` that require an extra parameter.
* Adding some missing methods to the TS compiler hosts.
* Fixing an issue in the TS mocks for the ngcc tests where a regex was too agressive and was trying to match a path like `/node_modules/@typescript/lib-es5`.
* Accounting for type-only import specifiers when reporting DI errors (see #43620).

Fixes #43620.

PR Close #44164
This commit is contained in:
Kristiyan Kostadinov
2021-11-30 11:47:11 +01:00
committed by Dylan Hunn
parent 0fcf18d5f4
commit d56e3f43a1
44 changed files with 419 additions and 108 deletions
@@ -43,6 +43,6 @@
"karma-jasmine-html-reporter": "~1.7.0",
"protractor": "~7.0.0",
"ts-node": "~10.1.0",
"typescript": "~4.4.3"
"typescript": "~4.5.2"
}
}