summaryrefslogtreecommitdiff
path: root/cli/tsc_config.rs
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2021-04-29 22:26:37 +1000
committerGitHub <noreply@github.com>2021-04-29 22:26:37 +1000
commit0ac2a17a0fdb19672058c7e6449c686e2a18366e (patch)
tree9283be62f66a2d09d91561612432c0b7a1ece633 /cli/tsc_config.rs
parentec0d3b61284828169e4e93954e08098fa341bcef (diff)
chore: remove unused keys from TsConfigJson (#10417)
Diffstat (limited to 'cli/tsc_config.rs')
-rw-r--r--cli/tsc_config.rs13
1 files changed, 7 insertions, 6 deletions
diff --git a/cli/tsc_config.rs b/cli/tsc_config.rs
index 0d85adb2e..ab4bbe712 100644
--- a/cli/tsc_config.rs
+++ b/cli/tsc_config.rs
@@ -147,16 +147,17 @@ pub fn json_merge(a: &mut Value, b: &Value) {
}
}
+/// A structure for deserializing a `tsconfig.json` file for the purposes of
+/// being used internally within Deno.
+///
+/// The only key in the JSON object that Deno cares about is the
+/// `compilerOptions` property. A valid `tsconfig.json` file can also contain
+/// the keys `exclude`, `extends`, `files`, `include`, `references`, and
+/// `typeAcquisition` which are all "ignored" by Deno.
#[derive(Debug, Deserialize)]
#[serde(rename_all = "camelCase")]
struct TsConfigJson {
compiler_options: Option<HashMap<String, Value>>,
- exclude: Option<Vec<String>>,
- extends: Option<String>,
- files: Option<Vec<String>>,
- include: Option<Vec<String>>,
- references: Option<Value>,
- type_acquisition: Option<Value>,
}
fn parse_compiler_options(