@@ -53,7 +53,6 @@ pub fn generate_asts(
5353                            root_package. to_owned ( ) , 
5454                            & source_file. implementation . path . to_owned ( ) , 
5555                            & build_state. bsc_path , 
56-                             & build_state. workspace_root , 
5756                        ) ; 
5857
5958                        let  iast_result = match  source_file. interface . as_ref ( ) . map ( |i| i. path . to_owned ( ) )  { 
@@ -62,7 +61,6 @@ pub fn generate_asts(
6261                                root_package. to_owned ( ) , 
6362                                & interface_file_path. to_owned ( ) , 
6463                                & build_state. bsc_path , 
65-                                 & build_state. workspace_root , 
6664                            ) 
6765                            . map ( Some ) , 
6866                            _ => Ok ( None ) , 
@@ -243,21 +241,12 @@ pub fn parser_args(
243241    config :  & config:: Config , 
244242    root_config :  & config:: Config , 
245243    filename :  & Path , 
246-     workspace_root :  & Option < PathBuf > , 
247244    root_path :  & Path , 
248245    contents :  & str , 
249246)  -> ( PathBuf ,  Vec < String > )  { 
250247    let  file = & filename; 
251248    let  ast_path = helpers:: get_ast_path ( file) ; 
252-     let  ppx_flags = config:: flatten_ppx_flags ( 
253-         & if  let  Some ( workspace_root)  = workspace_root { 
254-             workspace_root. join ( "node_modules" ) 
255-         }  else  { 
256-             root_path. join ( "node_modules" ) 
257-         } , 
258-         & filter_ppx_flags ( & config. ppx_flags ,  contents) , 
259-         & config. name , 
260-     ) ; 
249+     let  ppx_flags = config:: flatten_ppx_flags ( root_path,  & filter_ppx_flags ( & config. ppx_flags ,  contents) ) ; 
261250    let  jsx_args = root_config. get_jsx_args ( ) ; 
262251    let  jsx_module_args = root_config. get_jsx_module_args ( ) ; 
263252    let  jsx_mode_args = root_config. get_jsx_mode_args ( ) ; 
@@ -292,7 +281,6 @@ fn generate_ast(
292281    root_package :  packages:: Package , 
293282    filename :  & Path , 
294283    bsc_path :  & PathBuf , 
295-     workspace_root :  & Option < PathBuf > , 
296284)  -> Result < ( PathBuf ,  Option < helpers:: StdErr > ) ,  String >  { 
297285    let  file_path = PathBuf :: from ( & package. path ) . join ( filename) ; 
298286    let  contents = helpers:: read_file ( & file_path) . expect ( "Error reading file" ) ; 
@@ -302,7 +290,6 @@ fn generate_ast(
302290        & package. config , 
303291        & root_package. config , 
304292        filename, 
305-         workspace_root, 
306293        & root_package. path , 
307294        & contents, 
308295    ) ; 
0 commit comments