2025-01-08 18:46:37 -05:00
|
|
|
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
|
|
|
|
|
|
use async_trait::async_trait;
|
|
|
|
use deno_error::JsErrorBox;
|
|
|
|
|
2025-01-13 17:35:18 -05:00
|
|
|
use super::PackageCaching;
|
2025-01-08 18:46:37 -05:00
|
|
|
|
|
|
|
pub mod bin_entries;
|
|
|
|
pub mod lifecycle_scripts;
|
|
|
|
|
|
|
|
/// Part of the resolution that interacts with the file system.
|
|
|
|
#[async_trait(?Send)]
|
2025-01-13 17:35:18 -05:00
|
|
|
pub trait NpmPackageFsInstaller: std::fmt::Debug + Send + Sync {
|
2025-01-08 18:46:37 -05:00
|
|
|
async fn cache_packages<'a>(
|
|
|
|
&self,
|
|
|
|
caching: PackageCaching<'a>,
|
|
|
|
) -> Result<(), JsErrorBox>;
|
|
|
|
}
|