Files
JiboSDK/bin/shrinkwrap.sh
2026-03-22 03:21:45 +02:00

16 lines
535 B
Bash
Executable File

#!/bin/sh
# In the past we've had issues with npm not fetching the latest dependencies, this
# has reduced that from occurring
npm cache clean
# Remove all of the currently install modules and then install them all again based on
# package.json's dependencies
rm -rf node_modules npm-shrinkwrap.json;
# NOTE: We use --no-optional to prevent fsevents from using native modules
npm install --no-optional;
# Shrinkwrap everything including dev dependencies to ensure consistent/reproducable
# builds and checkouts
npm shrinkwrap --dev