forked from mirrors/thatmattlove-hyperglass
hyperglass: frontend: delete build dir before copying generated code to it
fixes #244
This commit is contained in:
parent
74a6ee3ab8
commit
85fa678d74
1 changed files with 2 additions and 1 deletions
|
|
@ -131,7 +131,8 @@ async def build_ui(app_path: Path):
|
|||
log.error(err)
|
||||
raise RuntimeError(str(err)) from err
|
||||
|
||||
shutil.copytree(src=out_dir, dst=build_dir, dirs_exist_ok=True)
|
||||
shutil.rmtree(build_dir)
|
||||
shutil.copytree(src=out_dir, dst=build_dir, dirs_exist_ok=False)
|
||||
log.bind(src=out_dir, dst=build_dir).debug("Migrated Next.JS build output")
|
||||
|
||||
return "\n".join(all_messages)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue