Skip to content

Commit 173682d

Browse files
committed
Remove copy from build script
1 parent e1a8f93 commit 173682d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,7 @@ installer = "uv"
7171
reactpy = "reactpy._console.cli:entry_point"
7272

7373
[[tool.hatch.build.hooks.build-scripts.scripts]]
74-
commands = [
75-
'hatch --env default run "src/build_scripts/copy_dir.py" "src/js/node_modules/@pyscript/core/dist" "src/reactpy/static/pyscript"',
76-
'hatch --env default run "src/build_scripts/copy_dir.py" "src/js/node_modules/morphdom/dist" "src/reactpy/static/morphdom"',
77-
]
74+
commands = []
7875
artifacts = []
7976

8077
#############################
@@ -202,6 +199,9 @@ build = [
202199
'hatch run javascript:build_event_to_object {args}',
203200
'hatch run javascript:build_client {args}',
204201
'hatch run javascript:build_app {args}',
202+
'hatch --env default run "src/build_scripts/copy_dir.py" "src/js/node_modules/@pyscript/core/dist" "src/reactpy/static/pyscript"',
203+
'hatch --env default run "src/build_scripts/copy_dir.py" "src/js/node_modules/morphdom/dist" "src/reactpy/static/morphdom"',
204+
205205
]
206206
build_event_to_object = [
207207
'hatch run "src/build_scripts/build_js_event_to_object.py" {args}',

0 commit comments

Comments
 (0)