File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -61,14 +61,10 @@ namespace :maglev do
61
61
62
62
desc "Copy the ViteRuby's public directory to the app's public directory"
63
63
task copy_public_dir : :environment do
64
- within_engine_folder do
65
- output_dir_name = Maglev ::Engine . vite_ruby . config . public_output_dir
66
- source_path = Maglev ::Engine . root . join ( 'public' , output_dir_name )
67
- target_path = Rails . root . join ( 'public' , output_dir_name )
68
- FileUtils . rm_rf ( target_path )
69
- FileUtils . mkdir_p ( target_path )
70
- FileUtils . cp_r ( source_path , target_path )
71
- end
64
+ output_dir_name = Maglev ::Engine . vite_ruby . config . public_output_dir
65
+ source_path = Maglev ::Engine . root . join ( 'public' , output_dir_name )
66
+ target_path = Rails . root . join ( 'public' )
67
+ FileUtils . cp_r ( source_path , target_path )
72
68
end
73
69
end
74
70
end
You can’t perform that action at this time.
0 commit comments