Skip to content

Commit

Permalink
use npm ci
Browse files Browse the repository at this point in the history
  • Loading branch information
netmindz authored Feb 22, 2025
1 parent a4680b7 commit fa2949a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pio-scripts/build_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
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")

# 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)

0 comments on commit fa2949a

Please sign in to comment.