mirror of
https://github.com/denoland/deno.git
synced 2024-12-23 07:44:48 -05:00
chore: remove unused keys from TsConfigJson (#10417)
This commit is contained in:
parent
ec0d3b6128
commit
0ac2a17a0f
1 changed files with 7 additions and 6 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue