@@ -109,7 +109,7 @@ pub fn get_core_templates_path(editor_version: String, app_state: &tauri::State<
109
109
110
110
let templates_path = crate :: editor:: get_package_manager_folder ( & editor) ?
111
111
. join ( "ProjectTemplates" ) ;
112
- println ! ( "Templates path: {}" , templates_path. display( ) ) ;
112
+ // println!("Templates path: {}", templates_path.display());
113
113
Ok ( templates_path)
114
114
}
115
115
@@ -322,11 +322,11 @@ pub fn extract_template_information(app: &tauri::AppHandle, app_state: &tauri::S
322
322
323
323
if let Some ( dependencies) = package_json. dependencies {
324
324
for ( key, value) in dependencies {
325
- found_deps. insert ( key. clone ( ) , ( value, 1 ) ) ;
325
+ found_deps. insert ( key. clone ( ) , ( value, 0 ) ) ;
326
326
}
327
327
}
328
328
329
- println ! ( "initial deps: {:?}" , found_deps) ;
329
+ // println!("initial deps: {:?}", found_deps);
330
330
331
331
if !package_lock_json_contents. is_empty ( ) {
332
332
let package_lock_json: PackageLockJson = serde_json:: from_str ( & package_lock_json_contents)
@@ -389,12 +389,15 @@ pub fn extract_template_information(app: &tauri::AppHandle, app_state: &tauri::S
389
389
}
390
390
391
391
write_editor_version_packages ( & app, & surface_template. editor_version , & editor_version_contents) ?;
392
+
393
+ // println!("found deps: {:?}", found_deps);
392
394
393
395
let mut final_deps = HashMap :: new ( ) ;
394
- for ( key, value) in found_deps. iter ( ) . filter ( |x| x. 1 . 1 = = 1 ) {
396
+ for ( key, value) in found_deps. iter ( ) . filter ( |x| x. 1 . 1 < = 1 ) {
395
397
final_deps. insert ( key. clone ( ) , value. 0 . clone ( ) ) ;
396
398
}
397
399
400
+ // println!("final deps: {:?}", final_deps);
398
401
package_json. dependencies = Some ( final_deps) ;
399
402
}
400
403
0 commit comments