From 3b305538807f3037f791fc662b9ecf6ca3a48f7a Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Fri, 19 Sep 2025 14:34:30 +0200 Subject: [PATCH] Use "npm ci" to build pretix (#5451) --- src/Makefile | 4 ++-- src/pretix/_build.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Makefile b/src/Makefile index df51f2072..7834612fa 100644 --- a/src/Makefile +++ b/src/Makefile @@ -25,8 +25,8 @@ coverage: coverage run -m py.test npminstall: - # keep this in sync with setup.py! + # keep this in sync with pretix/_build.py! mkdir -p pretix/static.dist/node_prefix/ cp -r pretix/static/npm_dir/* pretix/static.dist/node_prefix/ - npm install --prefix=pretix/static.dist/node_prefix + npm ci --prefix=pretix/static.dist/node_prefix diff --git a/src/pretix/_build.py b/src/pretix/_build.py index 28f94aadd..884384a37 100644 --- a/src/pretix/_build.py +++ b/src/pretix/_build.py @@ -39,7 +39,7 @@ def npm_install(): node_prefix = os.path.join(here, 'static.dist', 'node_prefix') os.makedirs(node_prefix, exist_ok=True) shutil.copytree(os.path.join(here, 'static', 'npm_dir'), node_prefix, dirs_exist_ok=True) - subprocess.check_call('npm install', shell=True, cwd=node_prefix) + subprocess.check_call('npm ci', shell=True, cwd=node_prefix) npm_installed = True