From dae666196b36181ae0b5efa337bc23bc5582dac6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Corentin=20S=C3=A9chet?= Date: Wed, 11 May 2022 11:05:40 +0200 Subject: [PATCH] setup: use npm ci to avoid package-lock.json modification during build (#65111) --- Makefile | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f65524f..98a7c80 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ clean: build: npm audit - npm install + npm clean-install npm run build dist: clean build diff --git a/setup.py b/setup.py index f9d5542..7975324 100755 --- a/setup.py +++ b/setup.py @@ -50,7 +50,7 @@ class compile_nodejs(Command): def run(self): if os.path.exists('dist/css'): - subprocess.check_call('npm install', shell=True) + subprocess.check_call('npm clean-install', shell=True) subprocess.check_call('npm run build', shell=True) if os.path.exists('xstatic/pkg/godo/data'): shutil.rmtree('xstatic/pkg/godo/data')