mirror of
https://codeberg.org/readeck/readeck.git
synced 2025-12-22 13:17:10 +00:00
chdir to web before performing JS updates
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
# ///
|
||||
|
||||
import os
|
||||
from contextlib import contextmanager
|
||||
from contextlib import chdir, contextmanager
|
||||
from datetime import date
|
||||
from subprocess import call, check_call
|
||||
from tempfile import TemporaryDirectory
|
||||
@@ -89,19 +89,19 @@ def update_go_dependencies():
|
||||
|
||||
|
||||
def update_js_dependencies():
|
||||
# fmt:off
|
||||
check_call(
|
||||
[
|
||||
"npm", "exec", "-y", "--",
|
||||
"npm-check-updates",
|
||||
"--cwd", "web",
|
||||
"-t", "minor",
|
||||
"--peer", "--upgrade",
|
||||
"--install", "always",
|
||||
]
|
||||
)
|
||||
# fmt: on
|
||||
check_call(["npx", "-y", "update-browserslist-db@latest"])
|
||||
with chdir("web"):
|
||||
# fmt:off
|
||||
check_call(
|
||||
[
|
||||
"npm", "exec", "-y", "--",
|
||||
"npm-check-updates",
|
||||
"-t", "minor",
|
||||
"--peer", "--upgrade",
|
||||
"--install", "always",
|
||||
]
|
||||
)
|
||||
# fmt: on
|
||||
check_call(["npx", "-y", "update-browserslist-db@latest"])
|
||||
|
||||
|
||||
def update_site_config_files():
|
||||
|
||||
Reference in New Issue
Block a user