@@ -71,15 +71,8 @@ installer = "uv"
7171reactpy = " reactpy._console.cli:entry_point"
7272
7373[[tool .hatch .build .hooks .build-scripts .scripts ]]
74- # Note: `hatch` can't be called within `build-scripts` when installing packages in editable mode, so we have to write the commands long-form
7574commands = [
76- ' python "src/build_scripts/clean_js_dir.py"' ,
77- ' bun install --cwd "src/js/packages/event-to-object"' ,
78- ' bun run --cwd "src/js/packages/event-to-object" build' ,
79- ' bun install --cwd "src/js/packages/@reactpy/client"' ,
80- ' bun run --cwd "src/js/packages/@reactpy/client" build' ,
81- ' bun install --cwd "src/js/packages/@reactpy/app"' ,
82- ' bun run --cwd "src/js/packages/@reactpy/app" build' ,
75+ " hatch --env default run javascript:build" ,
8376 ' python "src/build_scripts/copy_dir.py" "src/js/node_modules/@pyscript/core/dist" "src/reactpy/static/pyscript"' ,
8477 ' python "src/build_scripts/copy_dir.py" "src/js/node_modules/morphdom/dist" "src/reactpy/static/morphdom"' ,
8578]
@@ -90,15 +83,13 @@ artifacts = []
9083# ############################
9184[tool .hatch .envs .hatch-test .scripts ]
9285run = [
86+ ' hatch --env default run "src/build_scripts/install_playwright.py"' ,
9387 " hatch --env default build -t wheel" ,
94- " playwright install chromium" ,
95- " playwright install-deps" ,
9688 " pytest{env:HATCH_TEST_ARGS:} {args}" ,
9789]
9890run-cov = [
91+ ' hatch --env default run "src/build_scripts/install_playwright.py"' ,
9992 " hatch --env default build -t wheel" ,
100- " playwright install chromium" ,
101- " playwright install-deps" ,
10293 " coverage run -m pytest{env:HATCH_TEST_ARGS:} {args}" ,
10394]
10495cov-combine = " coverage combine"
@@ -195,7 +186,6 @@ detached = true
195186[tool .hatch .envs .javascript .scripts ]
196187check = [
197188 ' hatch run javascript:build' ,
198- ' bun install --cwd "src/js"' ,
199189 ' bun run --cwd "src/js" lint' ,
200190 ' bun run --cwd "src/js/packages/event-to-object" checkTypes' ,
201191 ' bun run --cwd "src/js/packages/@reactpy/client" checkTypes' ,
0 commit comments