Skip to content

Commit 03d3d46

Browse files
committed
build: cleanup now in build.ts, install without updating package-lock
1 parent 8b584c7 commit 03d3d46

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
with:
3535
enable-cache: false
3636
- run: uv build
37+
- run: git diff --exit-code
3738
- name: Publish release
3839
if: github.event_name == 'push' && github.ref_type == 'tag'
3940
env:

_build_backend.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,7 @@ def _compile_frontend() -> None:
6262
msg = "npm is missing"
6363
raise RuntimeError(msg)
6464

65-
# Clean outpute directory before building
66-
for p in Path("src/fava/static").iterdir():
67-
if p.name != "favicon.ico":
68-
p.unlink()
69-
70-
subprocess.run((npm, "install"), cwd="frontend", check=True)
65+
subprocess.run((npm, "install", "--no-save"), cwd="frontend", check=True)
7166
Path("frontend/node_modules").touch()
7267
subprocess.run((npm, "run", "build"), cwd="frontend", check=True)
7368

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ dev = [
111111
]
112112

113113
[build-system]
114-
requires = ["setuptools>=67", "setuptools_scm>=8.0", "Babel>=2.7,<3", "wheel"]
114+
requires = ["setuptools>=80", "setuptools_scm>=8", "Babel>=2.7,<3", "wheel"]
115115
build-backend = "_build_backend"
116116
backend-path = ["."]
117117

0 commit comments

Comments
 (0)