use npm ci

This commit is contained in:
netmindz 2025-02-22 17:39:00 +00:00 committed by GitHub
parent a4680b7216
commit fa2949af7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,7 +10,7 @@ if node_ex is None:
else:
# Install the necessary node packages for the pre-build asset bundling script
print('\x1b[6;33;42m' + 'Installing node packages' + '\x1b[0m')
env.Execute("npm install")
env.Execute("npm ci")
# Call the bundling script
exitCode = env.Execute("npm run build")
@ -18,4 +18,4 @@ else:
# If it failed, abort the build
if (exitCode):
print('\x1b[0;31;43m' + 'npm run build fails check https://kno.wled.ge/advanced/compiling-wled/' + '\x1b[0m')
exit(exitCode)
exit(exitCode)