diff options
Diffstat (limited to 'cli/args/config_file.rs')
-rw-r--r-- | cli/args/config_file.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cli/args/config_file.rs b/cli/args/config_file.rs index 8b52d7825..ed31a47a6 100644 --- a/cli/args/config_file.rs +++ b/cli/args/config_file.rs @@ -668,12 +668,13 @@ pub struct ConfigFileJson { pub bench: Option<Value>, pub lock: Option<Value>, pub exclude: Option<Value>, + pub node_modules_dir: Option<bool>, } #[derive(Clone, Debug)] pub struct ConfigFile { pub specifier: ModuleSpecifier, - pub json: ConfigFileJson, + json: ConfigFileJson, } impl ConfigFile { @@ -865,6 +866,10 @@ impl ConfigFile { self.json.import_map.clone() } + pub fn node_modules_dir(&self) -> Option<bool> { + self.json.node_modules_dir + } + pub fn to_import_map_value(&self) -> Value { let mut value = serde_json::Map::with_capacity(2); if let Some(imports) = &self.json.imports { |