File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ an array of scripts to the `tool.hatch.build.hooks.build-scripts.scripts` key in
29
29
| ` work_dir ` | ` "." ` | The directory to run the commands in. All artifact patterns are relative to this directory. |
30
30
| ` clean_artifacts ` | ` true ` | Whether to clean files from the ` out_dir ` that match the artifact patterns before running the commands. |
31
31
| ` clean_out_dir ` | ` false ` | Whether to clean the ` out_dir ` before running the commands. |
32
+ | ` clean_artifacts_after_build ` | ` false ` | Whether to clean the files from the ` out_dir ` that were generated by the scripts. |
32
33
33
34
In practice this looks like:
34
35
@@ -56,3 +57,4 @@ You can configure script defaults for scripts by adding a `[tool.hatch.build.hoo
56
57
| ` work_dir ` | ` "." ` | The directory to run the commands in. All artifact patterns are relative to this directory. |
57
58
| ` clean_artifacts ` | ` true ` | Whether to clean files from the ` out_dir ` that match the artifact patterns before running the commands. |
58
59
| ` clean_out_dir ` | ` false ` | Whether to clean the ` out_dir ` before running the commands. |
60
+ | ` clean_artifacts_after_build ` | ` false ` | Whether to clean the files from the ` out_dir ` that were generated by the scripts. |
You can’t perform that action at this time.
0 commit comments