summaryrefslogtreecommitdiff
path: root/cli/module_graph.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-06-10 16:02:41 +0200
committerGitHub <noreply@github.com>2020-06-10 16:02:41 +0200
commit4b7d3b060e88c02bc0ca12664f52111a4666b167 (patch)
tree018968e67c8d34c5cffe73578643eb071fa103b0 /cli/module_graph.rs
parentf364a4c2b6dcce65959af2da3663f0b4a7338229 (diff)
fix: several regressions in TS compiler (#6177)
This commit fixes several regressions in TS compiler: * double compilation of same module during same process run * compilation of JavaScript entry point with non-JS imports * unexpected skip of emit during compilation Additional checks were added to ensure "allowJs" setting is used in TS compiler if JavaScript has non-JS dependencies.
Diffstat (limited to 'cli/module_graph.rs')
-rw-r--r--cli/module_graph.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/cli/module_graph.rs b/cli/module_graph.rs
index 519f443ff..54c53c623 100644
--- a/cli/module_graph.rs
+++ b/cli/module_graph.rs
@@ -74,22 +74,22 @@ pub struct ModuleGraph(HashMap<String, ModuleGraphFile>);
#[derive(Debug, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct ImportDescriptor {
- specifier: String,
+ pub specifier: String,
#[serde(serialize_with = "serialize_module_specifier")]
- resolved_specifier: ModuleSpecifier,
+ pub resolved_specifier: ModuleSpecifier,
// These two fields are for support of @deno-types directive
// directly prepending import statement
- type_directive: Option<String>,
+ pub type_directive: Option<String>,
#[serde(serialize_with = "serialize_option_module_specifier")]
- resolved_type_directive: Option<ModuleSpecifier>,
+ pub resolved_type_directive: Option<ModuleSpecifier>,
}
#[derive(Debug, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct ReferenceDescriptor {
- specifier: String,
+ pub specifier: String,
#[serde(serialize_with = "serialize_module_specifier")]
- resolved_specifier: ModuleSpecifier,
+ pub resolved_specifier: ModuleSpecifier,
}
#[derive(Debug, Serialize)]