From ce876747c502eb26cb0f6fdb9aa064caeefd7489 Mon Sep 17 00:00:00 2001 From: Ryan Morshead Date: Sun, 11 Feb 2024 14:51:39 -0700 Subject: [PATCH] try resolve first --- src/py/reactpy/pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/py/reactpy/pyproject.toml b/src/py/reactpy/pyproject.toml index 00a7f5691..f5fe62b5c 100644 --- a/src/py/reactpy/pyproject.toml +++ b/src/py/reactpy/pyproject.toml @@ -111,8 +111,8 @@ artifacts = ["js"] out_dir = "reactpy/_static" commands = [ # link the js directory if it doesn't exist - use Python to avoid platform differences - "python -c \"import pathlib as p;js=p.Path('js');js.exists() or js.symlink_to(p.Path('..','..','js'),target_is_directory=True);\"", - "ls -l js && cd js && npm ci && npm run build; echo 'done'", + "python -c \"import pathlib as p;js=p.Path('js');js.exists() or js.symlink_to(p.Path('..','..','js').resolve(),target_is_directory=True);\"", + "cd js && npm ci && npm run build; echo 'done'", ] artifacts = ["js/app/dist/"]