diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-07-03 15:09:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-03 16:09:54 +0200 |
commit | 3242e2718fdbbdb6d1855c0f694e816f9af3f09c (patch) | |
tree | ee058f886a717a1571d247ef94d95ace14ef4055 /cli/build.rs | |
parent | 496ea5903bbe8e86185c30fc6f478b0092d64d65 (diff) |
feat: Upgrade to TypeScript 5.5.2 (#24326)
This commit upgrades TypeScript to 5.5.2.
https://devblogs.microsoft.com/typescript/announcing-typescript-5-5/
Diffstat (limited to 'cli/build.rs')
-rw-r--r-- | cli/build.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cli/build.rs b/cli/build.rs index b41921fec..eca254fa2 100644 --- a/cli/build.rs +++ b/cli/build.rs @@ -235,6 +235,7 @@ mod ts { "es2023", "es2023.array", "es2023.collection", + "es2023.intl", "esnext", "esnext.array", "esnext.collection", @@ -243,6 +244,8 @@ mod ts { "esnext.intl", "esnext.object", "esnext.promise", + "esnext.regexp", + "esnext.string", ]; let path_dts = cwd.join("tsc/dts"); @@ -311,7 +314,7 @@ mod ts { pub(crate) fn version() -> String { let file_text = std::fs::read_to_string("tsc/00_typescript.js").unwrap(); - let version_text = " version = \""; + let version_text = " version = \""; for line in file_text.lines() { if let Some(index) = line.find(version_text) { let remaining_line = &line[index + version_text.len()..]; @@ -453,7 +456,7 @@ fn main() { ); let ts_version = ts::version(); - debug_assert_eq!(ts_version, "5.4.5"); // bump this assertion when it changes + debug_assert_eq!(ts_version, "5.5.2"); // bump this assertion when it changes println!("cargo:rustc-env=TS_VERSION={}", ts_version); println!("cargo:rerun-if-env-changed=TS_VERSION"); |