File tree Expand file tree Collapse file tree
crates/vite_global_cli/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ use crate::{
2020 } ,
2121 error:: Error ,
2222 help,
23- js_executor:: JsExecutor ,
2423} ;
2524
2625#[ derive( Clone , Copy , Debug ) ]
@@ -1491,7 +1490,7 @@ fn run_tasks_completions(current: &OsStr) -> Vec<clap_complete::CompletionCandid
14911490 let Some ( cwd) = std:: env:: current_dir ( )
14921491 . ok ( )
14931492 . and_then ( AbsolutePathBuf :: new)
1494- . filter ( |p| JsExecutor :: resolve_local_vite_plus ( p ) . is_some ( ) )
1493+ . filter ( |p| commands :: has_vite_plus_dependency ( p ) )
14951494 else {
14961495 return vec ! [ ] ;
14971496 } ;
Original file line number Diff line number Diff line change @@ -326,7 +326,7 @@ impl JsExecutor {
326326 }
327327
328328 /// Resolve the local vite-plus package's `dist/bin.js` from the project directory.
329- pub fn resolve_local_vite_plus ( project_path : & AbsolutePath ) -> Option < AbsolutePathBuf > {
329+ fn resolve_local_vite_plus ( project_path : & AbsolutePath ) -> Option < AbsolutePathBuf > {
330330 use oxc_resolver:: { ResolveOptions , Resolver } ;
331331
332332 let resolver = Resolver :: new ( ResolveOptions {
You can’t perform that action at this time.
0 commit comments