summaryrefslogtreecommitdiff
path: root/cli/tools
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tools')
-rw-r--r--cli/tools/run/mod.rs4
-rw-r--r--cli/tools/test/mod.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/cli/tools/run/mod.rs b/cli/tools/run/mod.rs
index ffb26f2eb..0de852fc2 100644
--- a/cli/tools/run/mod.rs
+++ b/cli/tools/run/mod.rs
@@ -91,7 +91,7 @@ pub async fn run_from_stdin(flags: Flags) -> Result<i32, AnyError> {
std::io::stdin().read_to_end(&mut source)?;
// Save a fake file into file fetcher cache
// to allow module access by TS compiler
- file_fetcher.insert_cached(File {
+ file_fetcher.insert_memory_files(File {
specifier: main_module.clone(),
maybe_headers: None,
source: source.into(),
@@ -174,7 +174,7 @@ pub async fn eval_command(
// Save a fake file into file fetcher cache
// to allow module access by TS compiler.
- file_fetcher.insert_cached(File {
+ file_fetcher.insert_memory_files(File {
specifier: main_module.clone(),
maybe_headers: None,
source: source_code.into_bytes().into(),
diff --git a/cli/tools/test/mod.rs b/cli/tools/test/mod.rs
index c138abec2..2cf663b5f 100644
--- a/cli/tools/test/mod.rs
+++ b/cli/tools/test/mod.rs
@@ -873,7 +873,7 @@ pub async fn check_specifiers(
.collect();
for file in inline_files {
- file_fetcher.insert_cached(file);
+ file_fetcher.insert_memory_files(file);
}
module_load_preparer