0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-21 21:03:16 -05:00
denoland-deno/cli/tools/registry
David Sherret 273ec9fbf2
refactor: add WorkspaceFactory and ResolverFactory (#27766)
Allows easily constructing a `DenoResolver` using the exact same logic
that we use in the CLI (useful for dnt and for external bundlers). This
code is then used in the CLI to ensure the logic is always up-to-date.

```rs
use std::rc::Rc;

use deno_resolver:🏭:ResolverFactory;
use deno_resolver:🏭:WorkspaceFactory;
use sys_traits::impls::RealSys;

let sys = RealSys;
let cwd = sys.env_current_dir()?;
let workspace_factory = Rc::new(WorkspaceFactory::new(sys, cwd, Default::default()));
let resolver_factory = ResolverFactory::new(workspace_factory.clone(), Default::default());
let deno_resolver = resolver_factory.deno_resolver().await?;
```
2025-01-23 18:52:55 -05:00
..
pm refactor: add WorkspaceFactory and ResolverFactory (#27766) 2025-01-23 18:52:55 -05:00
api.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
auth.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
diagnostics.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
graph.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
mod.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
paths.rs refactor: update deno_core for error refactor (#26867) 2025-01-08 14:52:32 -08:00
pm.rs refactor: add WorkspaceFactory and ResolverFactory (#27766) 2025-01-23 18:52:55 -05:00
provenance.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
publish_order.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
tar.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
unfurl.rs fix(publish): unfurl sloppy imports in d.ts files and type imports (#27793) 2025-01-23 14:32:30 +00:00