forked from mirrors/thatmattlove-hyperglass
Merge pull request #247 from maluueu/244-build-ui-error
hyperglass: frontend: delete build dir before copying generated code to it
This commit is contained in:
commit
72887e0f9a
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