From 2fcf1f14cf29bb68995f652f93a4f6e3cb55c8d7 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Tue, 21 Mar 2023 11:46:40 -0400 Subject: feat: TypeScript 5.0.2 (except decorators) (#18294) This upgrades TypeScript to 5.0.2, but does not have ES decorator support because swc does not support that yet. --- runtime/Cargo.toml | 2 +- runtime/build.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime') diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index 50fedcaa1..e3a98e9af 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -104,7 +104,7 @@ uuid.workspace = true [target.'cfg(windows)'.dependencies] fwdansi.workspace = true -winapi = { workspace = true, features = ["commapi", "knownfolders", "mswsock", "objbase", "psapi", "shlobj", "tlhelp32", "winbase", "winerror", "winsock2"] } +winapi = { workspace = true, features = ["commapi", "knownfolders", "mswsock", "objbase", "psapi", "shlobj", "tlhelp32", "winbase", "winerror", "winuser", "winsock2"] } ntapi = "0.4.0" [target.'cfg(unix)'.dependencies] diff --git a/runtime/build.rs b/runtime/build.rs index 346dbe439..016ece810 100644 --- a/runtime/build.rs +++ b/runtime/build.rs @@ -22,7 +22,7 @@ mod startup_snapshot { fn transpile_ts_for_snapshotting( file_source: &ExtensionFileSource, ) -> Result { - let media_type = MediaType::from(Path::new(&file_source.specifier)); + let media_type = MediaType::from_path(Path::new(&file_source.specifier)); let should_transpile = match media_type { MediaType::JavaScript => false, -- cgit v1.2.3