From afcae364beb2cffa8e583b4ffd3a55b59336cb1b Mon Sep 17 00:00:00 2001 From: David Sherret Date: Fri, 19 Jul 2024 15:56:07 -0400 Subject: refactor: update to deno_config 0.25 (#24645) - Gets rid of WorkspaceMemberContext. It's now `Workspace` and `WorkspaceDirectory` - Uses the workspace cache in the lsp * https://github.com/denoland/deno_config/pull/95 * https://github.com/denoland/deno_config/pull/96 --- cli/standalone/binary.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'cli/standalone') diff --git a/cli/standalone/binary.rs b/cli/standalone/binary.rs index 342c637d5..85d131f42 100644 --- a/cli/standalone/binary.rs +++ b/cli/standalone/binary.rs @@ -733,18 +733,13 @@ impl<'a> DenoCompileBinaryWriter<'a> { InnerCliNpmResolverRef::Byonm(_) => { maybe_warn_different_system(&self.npm_system_info); let mut builder = VfsBuilder::new(root_path.to_path_buf())?; - for pkg_json in cli_options.workspace.package_jsons() { + for pkg_json in cli_options.workspace().package_jsons() { builder.add_file_at_path(&pkg_json.path)?; } // traverse and add all the node_modules directories in the workspace let mut pending_dirs = VecDeque::new(); pending_dirs.push_back( - cli_options - .workspace - .root_folder() - .0 - .to_file_path() - .unwrap(), + cli_options.workspace().root_dir().to_file_path().unwrap(), ); while let Some(pending_dir) = pending_dirs.pop_front() { let entries = fs::read_dir(&pending_dir).with_context(|| { -- cgit v1.2.3