File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -308,9 +308,12 @@ impl TaskEnvs {
308308 all_envs. entry ( "PATH" . into ( ) ) . or_insert_with ( || Arc :: < OsStr > :: from ( OsStr :: new ( "" ) ) ) ;
309309 let paths = split_paths ( env_path) ;
310310
311+ const NODE_MODULES_DOT_BIN : & str =
312+ if cfg ! ( windows) { "node_modules\\ .bin" } else { "node_modules/.bin" } ;
313+
311314 let node_modules_bin_paths = [
312- base_dir. join ( & task. config . cwd ) . join ( "node_modules/.bin" ) . into_path_buf ( ) ,
313- base_dir. join ( & task. config_dir ) . join ( "node_modules/.bin" ) . into_path_buf ( ) ,
315+ base_dir. join ( & task. config . cwd ) . join ( NODE_MODULES_DOT_BIN ) . into_path_buf ( ) ,
316+ base_dir. join ( & task. config_dir ) . join ( NODE_MODULES_DOT_BIN ) . into_path_buf ( ) ,
314317 ] ;
315318 * env_path = join_paths ( node_modules_bin_paths. into_iter ( ) . chain ( paths) ) ?. into ( ) ;
316319
You can’t perform that action at this time.
0 commit comments