Skip to content

Commit 3327f4e

Browse files
committed
always delete symlink
1 parent 6c7fd8c commit 3327f4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/py/reactpy/pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ artifacts = ["js"]
111111
out_dir = "reactpy/_static"
112112
commands = [
113113
# link the js directory if it doesn't exist - use Python to avoid platform differences
114-
"python -c \"import pathlib as p;js=p.Path('js');js.exists() or js.symlink_to(p.Path('..','..','js').resolve(),target_is_directory=True);\"",
114+
"python -c \"import pathlib as p;js = p.Path('js');js.unlink(missing_ok=True);js.symlink_to(p.Path('..', '..', 'js'), target_is_directory=True);\"",
115115
"cd js && npm ci && npm run build",
116116
]
117117
artifacts = ["js/app/dist/"]

0 commit comments

Comments
 (0)