mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 10:59:13 +00:00
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.
This commit is contained in:
parent
0366d6833f
commit
2fcf1f14cf
111 changed files with 173492 additions and 178485 deletions
|
@ -95,6 +95,7 @@ impl Serialize for IgnoredCompilerOptions {
|
|||
/// either have no effect on the compilation or would cause the emit to not work
|
||||
/// in Deno.
|
||||
pub const IGNORED_COMPILER_OPTIONS: &[&str] = &[
|
||||
"allowImportingTsExtensions",
|
||||
"allowSyntheticDefaultImports",
|
||||
"allowUmdGlobalAccess",
|
||||
"assumeChangesOnlyAffectDirectDependencies",
|
||||
|
@ -900,6 +901,7 @@ pub fn get_ts_config_for_emit(
|
|||
) -> Result<TsConfigForEmit, AnyError> {
|
||||
let mut ts_config = match config_type {
|
||||
TsConfigType::Bundle => TsConfig::new(json!({
|
||||
"allowImportingTsExtensions": true,
|
||||
"checkJs": false,
|
||||
"emitDecoratorMetadata": false,
|
||||
"importsNotUsedAsValues": "remove",
|
||||
|
@ -912,6 +914,7 @@ pub fn get_ts_config_for_emit(
|
|||
})),
|
||||
TsConfigType::Check { lib } => TsConfig::new(json!({
|
||||
"allowJs": true,
|
||||
"allowImportingTsExtensions": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"checkJs": false,
|
||||
"emitDecoratorMetadata": false,
|
||||
|
@ -936,6 +939,7 @@ pub fn get_ts_config_for_emit(
|
|||
"useUnknownInCatchVariables": false,
|
||||
})),
|
||||
TsConfigType::Emit => TsConfig::new(json!({
|
||||
"allowImportingTsExtensions": true,
|
||||
"checkJs": false,
|
||||
"emitDecoratorMetadata": false,
|
||||
"importsNotUsedAsValues": "remove",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue