Skip to content

Commit 6e80020

Browse files
committed
more readable python script
1 parent 9176dda commit 6e80020

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/py/reactpy/pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,11 @@ 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.symlink_to(p.Path('..','..','js').resolve(),target_is_directory=True);\"",
114+
"""python -c \"
115+
from pathlib import Path
116+
js = Path('js')
117+
js.symlink_to(Path('..','..','js').resolve(),target_is_directory=True)
118+
\"""",
115119
"cd js && npm ci && npm run build; echo 'done'",
116120
]
117121
artifacts = ["js/app/dist/"]

0 commit comments

Comments
 (0)