Skip to content

Commit 43d74e9

Browse files
committed
Fix copy_assets
1 parent 9b919f6 commit 43d74e9

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

julia-runtime/run.jl

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,15 @@ function generate_output(nb::Pluto.Notebook, filename::String, vscode_proxy_root
107107
end
108108

109109

110-
copy_assets(force=true) = cp(Pluto.project_relative_path("frontend"), asset_output_dir; force=force)
110+
function copy_assets()
111+
mkpath(asset_output_dir)
112+
src = Pluto.project_relative_path("frontend")
113+
dest = asset_output_dir
114+
for f in readdir(src)
115+
cp(joinpath(src, f), joinpath(dest, f); force=true)
116+
end
117+
end
118+
111119
copy_assets()
112120
mkpath(extensionData.jlfilesroot)
113121

@@ -119,7 +127,7 @@ try ## Note: This is to assist with co-developing Pluto & this Extension
119127
@info "Pluto asset changed!"
120128
# It's not safe to remove the folder
121129
# because we reuse HTML files
122-
copy_assets(false)
130+
copy_assets()
123131
mkpath(joinpath(asset_output_dir, "jlfiles/"))
124132
end
125133
catch e

0 commit comments

Comments
 (0)