Skip to content

Commit 9e128b6

Browse files
committed
fix script
1 parent 6e80020 commit 9e128b6

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/py/reactpy/pyproject.toml

+1-5
Original file line numberDiff line numberDiff line change
@@ -111,11 +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 \"
115-
from pathlib import Path
116-
js = Path('js')
117-
js.symlink_to(Path('..','..','js').resolve(),target_is_directory=True)
118-
\"""",
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);\"",
119115
"cd js && npm ci && npm run build; echo 'done'",
120116
]
121117
artifacts = ["js/app/dist/"]

0 commit comments

Comments
 (0)