setup: use npm ci to avoid package-lock.json modification during build (#65111)
This commit is contained in:
parent
f2b6316152
commit
dae666196b
2
Makefile
2
Makefile
|
@ -12,7 +12,7 @@ clean:
|
|||
|
||||
build:
|
||||
npm audit
|
||||
npm install
|
||||
npm clean-install
|
||||
npm run build
|
||||
|
||||
dist: clean build
|
||||
|
|
2
setup.py
2
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')
|
||||
|
|
Loading…
Reference in New Issue