fixed publishing script

This commit is contained in:
Jakob Pinterits
2024-05-26 18:45:15 +02:00
parent b9e5ac232b
commit b20ce00512

View File

@@ -59,7 +59,11 @@ def ensure_up_to_date_with_remote() -> None:
def build_frontend() -> None:
# Note: `shell=True` is required on Windows because `npm` is a `.cmd` file
# and not a `.exe`
subprocess.run(["npm", "run", "build"], shell=True, check=True)
subprocess.run(
["npm", "run", "build"],
shell=sys.platform == "win32",
check=True,
)
def ensure_tests_pass() -> None: