setup: use npm ci to avoid package-lock.json modification during build (#65111)

This commit is contained in:
Corentin Sechet 2022-05-11 11:05:40 +02:00
parent f2b6316152
commit dae666196b
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ clean:
build:
npm audit
npm install
npm clean-install
npm run build
dist: clean build

View File

@ -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')